Re: java sun and gcj problem
> > > > Probably eclipse "installs & uses" gcj and not java-sun. > > > It is using gcj as a VM at least, see the libgcj in your error above. > > > > How can I > > > > come back to "old" situation (using java sun)? > > > > with 'update-alternatives' I got: > > > > # update-alternatives --config javac > > > > There is only 1 program which provides javac > > (/usr/lib/j2sdk1.5-sun/bin/javac). Nothing to configure. > > And what does > # update-alternatives --config java > say? > > >Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder > >not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], > You got your compiler right (Sun) probably, but the runtime is surely > the gcj one. Hi Edwin, # update-alternatives --config java There are 3 alternatives which provide `java'. SelectionAlternative --- 1/usr/lib/j2sdk1.5-sun/bin/java 2/usr/bin/gij-wrapper-4.0 *+3/usr/lib/jvm/java-gcj/bin/java Press enter to keep the default[*], or type selection number: 1 Using `/usr/lib/j2sdk1.5-sun/bin/java' to provide `java'. I have selected first argument and now it works:) Thank you very much, Giulio
Re: java sun and gcj problem
> > I have compiled a simple java program with java sun 1.5. Everything > > worked. Today I have installed eclipse, and after recompiling same > > program (without errors) I have launched it but I got: > > > > Exception in thread "main" java.lang.NoClassDefFoundError: while > > resolving class: myApp > Are you sure you are actually launching what you want to launch? Is > the classpath set correctly? > > Probably eclipse "installs & uses" gcj and not java-sun. > It is using gcj as a VM at least, see the libgcj in your error above. > > How can I > > come back to "old" situation (using java sun)? with 'update-alternatives' I got: # update-alternatives --config javac There is only 1 program which provides javac (/usr/lib/j2sdk1.5-sun/bin/javac). Nothing to configure. Giulio -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java sun and gcj problem
Hi, I have compiled a simple java program with java sun 1.5. Everything worked. Today I have installed eclipse, and after recompiling same program (without errors) I have launched it but I got: Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: myApp at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0) at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0) at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0) at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0) at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0) at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0) at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0) at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0) ...4 more Probably eclipse "installs & uses" gcj and not java-sun. How can I come back to "old" situation (using java sun)? Thanks, Giulio