[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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'.

  Selection    Alternative
-----------------------------------------------
      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



Reply to: