Dear Dr. Evil,

I too have installed Sun's jdk1.3.1 on Mandrake 8.0, and I use it every
day to write software in Java.  As long as you set up the appropriate
environment variables (namely PATH and CLASSPATH), you shouldn't have any
trouble writing, compiling, and running Java programs.

If you would like more details on how I set up my environment to support
Java development, I would be more than happy to share them with you.  Just
send me a reply, and I will help you unravel the Java mysteries...

By the way, it is my humble opinion that getting the environment
configured correctly is at least half the battle in learning how to
program in Java.  It's not always intuitive at first, and it's definitely
easier to get started if you have the help of someone who has already set
things up before on several different OS's.  And yes, compiled Java
classes are truly portable across OS's without recompiling (with a few
exceptions like Java Native Interface API and multi-threaded programs).

Hope this helps you want to try again.  Please contact me if you would
like help getting Java set up on your Mandrake box.

Mike

--- "Dr. Evil" <[EMAIL PROTECTED]> wrote:
> 
> It seems very difficult to get the Linux java stuff working.  When I
> installed Mandrake, it came with a bunch of java stuff:
> 
> /usr/bin/java  /usr/bin/javac  /usr/bin/javadoc  /usr/bin/javakey
> /usr/bin/javap
> 
> However, when I set my java interpreter to /usr/bin/java in Konqueror,
> it wouldn't run java applets.  I downloaded the Sun JDK, and installed
> it in /usr/local/jdk1.3.1/, and then set Konqueror's java to
> /usr/local/jdk1.3.1/bin/java.  Now Konq shows java applets just fine.
> So, what was /usr/bin/java for?
> 
> Also, I am now trying to write some of my own java stuff.  When I use
> Sun's JDK javac, I can compile things just fine, but when I try to run
> even the simplest java thing from the commandline, I get this error:
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: test/class 
> 
> So, what's the story on java with Linux?  So far it seems that java is
> "write once, run nowhere".
> 
> Shouldn't this stuff be built in the kernel?  In other words,
> shouldn't the kernel be able to execute java binaries by using some
> kind of built-in JVM?
> 
> > Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://wwww.mandrakestore.com
> 


=====
May the Force be with you.

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://wwww.mandrakestore.com

Reply via email to