Hello, I wonder if anyone can help - I have this error showing recently when debugging in eclipse - what doe it mean by resource, an imported package or the location of some java files ?
Can't find resource for bundle sun.awt.resources.awt, key AWT.EventQueueClass
MissingResourceException (id =45)
Thanks
I have a Java source code that I need to interrogate and apply security policies [for e.g. applying CWE]
I have couple of ideas, for starters using AST and then travel thru the tree. Others include using regular expression.
Are there any options other than AST or regex that I could use for such process.
Hi
Can anyone please tell me how to decode quoted-printable using java. Actually i am reading mail from the server and fetching some data from mail using regex.My mail content type is text/html and because of which i am getting html tags along with the data and making very difficult for me to do the pattern matching. it is showing some =20 or =cF etc like characters also.
How i can resolve this problem???
Thanks and Regards,
Shikha Virmani
I am trying to dislplay a kannda character in a Java app.
String fonts[] = ge.getAvailableFontFamilyNames();
This shows that there is a font family by name "BRH Kannada"
Font f = new Font("BRH Kannada", Font.PLAIN, 20);
and then I do
button.setFont(f);
now when i set the button text, I have to ideally get the text on button to use the BRH kannada font.
However, what and how should I give the string as?
Hello!
How can I draw a String in Java (using Graphics2d) in monospace mode? I have a font that looks like LCD screen font, and I want to draw something like LCD label.
I am using Digital 7 Mono font.
Do you know where I can find another font that will be monospace and lcd (I wan to type only digitals)?
I have an web application written in Java, and I have a thread-pool.
The application is huge, and I cannot make major changes, for example, I cannot change log4j.
I am executing a batch process in the thread pool, and I want to log everything that goes is executed to execute that process.
There will always be just one thread active in the thread pool.
Any ideas of how can I do that?
When I do the following in Java:
System.out.println(2.2-2.0);
It unexpectedly prints the following:
0.20000000000000018
What is this and how can I avoid this?
I'm looking for a lightweight java reporting engine to be embedded in an applet application.
My first option was Jasper Reports, but the jar is over 2Mb, a little too heavy (and too bloated) for my needs. I don't know if there is modular jasper distribution, with funcionalities split in several jars (like html rendering, pdf, excel, compilation, runtime, etc).
I need to preview the report using Swing and print it. PDF export is a plus.
Hey guys,
I am working on a Natural Language parser which examines a sentence in english and extracts some information like name, date etc.
for example: "Lets meet next tuesday at 5 PM at the beach."
So the output will be something like : "Lets meet 15/09/2009 at 1700 hr at the beach"
So basically, what i want to know is that is there any framework or library available for JAVA to do these kind of operations like parsing dates from a sentence and give a output with some specified format.
Regards,
Pranav
I'm looking for a Java ORM that works from database reflection - I need to just point it at a DB, and start being able to walk through the entire set of tables, etc.
Ideas?
Hey,
I want to measure thread execution time in Java. Now I'm monitoring thread start and end times, but I think it's not so accurate because thread could be suspended during it execution.
Is it possible to define array in this way in JAVA, otherwise are there an alternative close this definition?
private final int CONST_0= 0;
private final int CONST_1= 1;
private final int CONST_2= 2;
private final int CONST_3= 3;
private final String[] CONST_TXTRECORDS = new String[]
{[CONST_0] = "test0",
{[CONST_1] = "test1",
{[CONST_2] = "test2",
{[CONST_3] = "test3"};
Hi all, i am trying to call a navite method defined in c++ from java, the function which i am trying to call refers some functions defined in header files and also the other functions defined by me... is it passible to call that?.. i am getting an error "error LNK2019-unresolved external symbol"..
When I use the default java locale on my linux machine it comes out with the US locale settings, where do I change this so that it comes out with the correct locale?
Is it possible to have multiple authentication methods for a java servlet? For example, have form based authentication in addition to open id based authentication so users can choose how they log in.
Hi - how do I push server alerts to tray apps in java without using xmpp or other heavy protocols?
Do you recommend a way to accomplish this?
I was planning to write an app which uses URLConnection on a server equipped with Comet but I doubt if that would work as the client requires a JS to be invoked and URLConnection is not a browser..
What is the best way to push instead of using a proprietary client-server approach?
Hi,
I found Facelift which can basically generate html headings as images (with "nice font") on the fly. Does something similar exist for Java (couldn't find one myself)?
Cheers,
stephanos
Can anyone recommend a tutorial on how to write a java servlet which connects to ms sql server and manages data?
I'm trying to write something which pulls products out of one database and inserts them into a stored procedure located on another database.
thanks in advance
Hi all,
I've been programming in Java for a few courses in the University and I have the following question:
Is it methodologically accepted that every class should implement an interface? Is it considered bad practice not to do so? Can you describe a situation where it's not a good idea to use interfaces?
Thanks.