Jump to content

java 2 for mandrake 10.1


Recommended Posts

Hi all ,

 

i want to setup j2se on my mandrake 10.1 box . Is there any java setup file specifically for mandrake ??

I also i want a lightweight IDE for java on linux (mandrake 10.1)..

 

my PC config:

 

Pentium 2 400 MHZ , 128 MB ram

Intel 440 BX , Riva TNT video card + voodoo2 graphic accelerator.

 

Thanks in advance.

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

The minimum memory requirements for NetBeans, according to Sun's website, is 384 megs.

 

Also, every attempt I've made at running Eclipse on my 300MHz cpu, 228 meg memory machine has completely locked it up.

 

Trouble is that most Java IDE's are written in Java itself, and use either Swing, SWT, or AWT for the GUI frontend. These GUI toolkits, combined with the JVM, are big resource hogs (yes, even SWT, which references native GUI toolkits, but still has the Java wrappers running in the JVM).

 

It's pretty sad that a Java IDE is such a hog.

 

The good news is that you can write Java code with KDevelop, which is written in C++ and it runs natively, so it has minimal resource requriements.

 

Java, running on the server side as J2EE, is very very powerful and hugely successful. But Java on the client side (desktops), quite simply stinks.

Link to comment
Share on other sites

  • 3 weeks later...
Guest emo_kid_joe

I'm also trying to get Java working in mandrake 10.1, but no success so far.

 

I'm a beginner to Linux, and somewhat confused why it's not working. javac works, but if I try using java to run a compiled class, I get the error

Exception in thread "main" java.lang.NoClassDefFoundError: whatever/class

.

 

If I try java --help I get:

Unrecognized option: --help
Could not create the Java virtual machine.

 

I'm using the JRE 1.5.0.

 

Can someone help me, or tell me where i'm going wrong?

 

Thanks in advance.

Link to comment
Share on other sites

I'm also trying to get Java working in mandrake 10.1, but no success so far.

 

I'm a beginner to Linux, and somewhat confused why it's not working. javac works, but if I try using java to run a compiled class, I get the error

Exception in thread "main" java.lang.NoClassDefFoundError: whatever/class

.

 

If I try java --help I get:

Unrecognized option: --help
Could not create the Java virtual machine.

 

I'm using the JRE 1.5.0.

 

Can someone help me, or tell me where i'm going wrong?

 

Thanks in advance.

ok I'm not sure if you already tried this so I'm just going to run through the steps I've taken to get java working on my machine. Don't get upset if I am going over something you already did or find trivial.

 

First, I downloaded the latest JDK version from Java Development Kit unzipped it and ran the binary as root. I installed it in /opt/.

Next, I edited the path to include my java installation directory (I'm not sure if this was the correct way but I edited my .bash_profile (whichever .bash file already has the PATH variable added) file to include the path).

I also added a CLASSPATH variable and it looks like this

PATH=/opt/jdk1.5.0_01/bin:/opt/firefox-installer/:$PATH:$HOME/bin
CLASSPATH=.:$CLASSPATH

Then I logged out and back in so that the changes would take effect.

I did a test run with a simple program and it worked fine.

 

Hope this helps

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...