jdk

javac (and other jdk executables) produce NoClassDefFoundError

On Solaris 10, I'm using JDK 1.5.0_22 and when I run any of the JDK executables (javac, native2ascii, javadoc, etc) in the JDK/bin directory that require tools.jar to run, I get this error (run with and without arguments): Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main JRE executables in the bin dir...

How can I convert a JAR file to an EXE file?

I have created a JAR file and I want run it on a client. I have a couple of questions: How can I convert the JAR file to an EXE file? How can I encrypt the JAR file's contents? The jar file could be extracted with WinRAR and the classes could be decompiled with any Java decompiler. How can I create a installer? My clients doesn't have ...

JDK/JRE/JVM/Java SDK | What do they all mean? Sometimes you can develop with JRE and sometimes you need JDK?

To tell the truth, I am quite confused on all these terms (JDK/JRE/Java SDK). I am not sure what each one does. When I first started doing simple java examples in eclipse, I am pretty sure I only had the JRE, which I believed was the default java installer regular users use to be able to run java programs/applets on their system. Howev...

Linux 64 bit machine java.lang:type=MemoryPool,name=Perm Gen [shared-rw],java.lang:type=MemoryPool,name=Perm Gen [shared-ro] not listed in JConsole

I m running a Java Application in Linux Fedora OS 64 bit machine.I connected jconsole to Remote JMX port of JDK application . I dont see MBeans java.lang:type=MemoryPool,name=Perm Gen [shared-ro], java.lang:type=MemoryPool,name=Perm Gen [shared-rw] .I dont see Perm Gen(Shared RO) Perm Gen(Shared RW) Graphs and values under Memory Tab.I...

What happened to JAXB's NamespacePrefixMapper in JDK6u18

Hey I've been using com.sun.xml.bind.marshaller.NamespacePrefixMapper in my project, and i had no problem with it in JDK 6u17. Now I just updated to 6u18, and I saw that it has been replaced to com.sun.xml.internal.bind.marshaller.NamespacePrefixMapper. However if I import this class and try to compile my classes, I get the error: pac...

How to get jersey logs at server?

I am using jersey for a REST WS. How do I enable jersey logs at server side? Long story: I get a clientside exception - but I don't see anything in tomcat logs [It doesn't even reach my method]. Since the stack trace is saying "toReturnValue" it did get something from server. But I don't know what the server said. Exception in thread ...

JSF 1.2 app not working with GlassFish v3

Hey! Migrating to GlassFish v3 / JDK6u18 / NB6.8 makes me a lot of headscratching, and I'm quite confused now. My project (JSF, RichFaces, Spring) works fine with GlassFish v2 + JDK6u17. I'm using the same JAR's, and the same JSF version. One of my JSP's contains a <rich:tree>, this renders just fine, but if I post the values on this p...

Is java.util.Observable used anywhere?

Was chatting to a colleague about the design of Javas libraries. I mentioned I'd always found it funny that the AWT/Swing classes called that essentially provide an Observable interface on a UI widget were actually called "listeners". Whereupon he floored me by pointing out that there would have been a name clash with java.util.Observer...

How to recompile Java Runtime Environment (JRE)?

I thought this would be very easy. I downloaded the JDK, extracted src.zip, modified the JDK to fit my needs and saved the file. Now, the only thing I need to do is recompile the extracted and update src folder to a "JRE". I tried using javac, but didn't get anywhere. For example, I got the error that no source files were given. I am ob...

Struts 1.3.8 is compatible with jdk 1.6?

Hi all, I have searched the net to see if struts 1.3.8 is compatible with jdk 1.6. If anyone does know, just replay ...

Can documents indexed with Solr on JDK6 be retrieved using only lucene api on JDK1.4?

My runtime environment is still on JDK1.4 but I like the Solr features related to how documents are ingested and indexed. Would I be able to index my documents using Solr offline on a recent version of the JDK, copy the index over and use it in my runtime environment with an older version of the JDK? Version wise, Solr 1.4.0 uses Apach...

Suggest a Java IDE for Pocket PC

Hi Guys How can I write a java application with Pocket Pc? could you please suggest me an IDE and JDK for PPC? I want write java applications with PPC's keyboard for example in travel. for example HyperEdit is an IDE for HTML. Thanks a lot ... My PPC : Xperia X1 My OS : WindowsMobile 6.1 My Cpu : 528 Mhz ...

Standard Place for an Empty String Array in the JDK

Hi is there a standard place for accessing empty array constants in the JDK > 1.5. When I want to do a conversion from a String Collection (e.g. ArrayList)to a String Array I find myself using my own which is defined in my own Constants class: public static final String[] EMPTY_STRING_ARRAY = new String[0]; And then in my client cod...

Specify JDK for Maven to use

Hi all. I am trying to build a Hudson plugin I've modified and it requires jdk1.6. This is fine, but I don't see how I can tell maven where the different jdk is. I've found few mentions on the internet but they don't seem to apply to me. Some suggest adding some config to .m2/settings.xml but I don't have a settings.xml. Plus, I don't wa...

loading wrong jvm.dll

When I run an executable I created, it uses the jvm.dll from C:\Windows\System32. But I want it to use the jvm.dll in C:\Program Files\Java\jdk1.6.0_17\jre\bin\server. C:\Program Files\Java\jdk1.6.0_17\jre\bin\server is in my PATH environment variable. Does anyone know how to accomplish this? Thanks. ...

JRE included with JDK vs. standalone JRE

What's the difference between the JRE included with the JDK (located inside of the jre folder) and the standalone JRE? Is there any? ...

Installing jdk without sudo?

Currently, I have a machine on which I am working in Eclipse, it says that the JRE System Library version is sun-jdk-1.5.0.11 but on my active development machine, it is java-6-sun-1.6.0.16. Is there any way I can make the first machine to use the same "java-6-sun-1.6.0.16" version without having sudo permissions on the machine? ...

How do i find out the JDK version Eclipse is using?

I see JRE all over the place, but i can not be sure which JDK is compiling my code. How do i find out? ...

Java specification

Java JDK or JRE or both are specifications? Can anyone quote some relevant implementations? ...

Are Open JDK and JDK7 the same thing?

Are Open JDK and JDK7 the same thing? ...