There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard mouse network printer problem ram registry router server slow software sound svchost.exe trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Java Won't Work!

Reply  
Thread Tools
Klogg's Avatar
Junior Member with 29 posts.
 
Join Date: Jun 2004
Experience: Advanced
10-Feb-2006, 05:12 PM #1
Java Won't Work!
Hey,

I've installed JDK 1.5.0 on Linux, and I can't get it to work completely. I got the "javac" command to work right, but when I try to run my programs by typing "java whatever", it says it's missing a bunch of classes or something. I went and asked the teacher's assistants at my university about it, and they said I probably needed to set the classpath in my .bashrc file to something, but they didn't know what I needed to set it to. I also emailed my professor, and he said that he wasn't able to help me either. Which makes me wonder... how in the world do all these people program in Java on their computers without even knowing how to get it installed? Anyway, I've been researching this and trying all sorts of things, but I can't get it to work. I even messed something up and almost had to reinstall Linux. Any help would be appreciated, as I am getting very frustrated. Thanks.
__________________
Take a look at my computer programs. Go to my web site.
Klogg's Avatar
Junior Member with 29 posts.
 
Join Date: Jun 2004
Experience: Advanced
11-Feb-2006, 07:18 PM #2
Never mind. I just got the problem fixed with help from another Linux forum.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
18-Feb-2006, 08:27 AM #3
Quote:
Originally Posted by Klogg
Never mind. I just got the problem fixed with help from another Linux forum.
What was the fix?

-- Tom
Klogg's Avatar
Junior Member with 29 posts.
 
Join Date: Jun 2004
Experience: Advanced
18-Feb-2006, 01:37 PM #4
I had to put this in my .bashrc file:

export PATH=/usr/java/jdk1.5.0_06/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/cole/bin:.
export JAVA_BINDIR=/usr/java/jdk1.5.0_06/bin
export JAVA_HOME=/usr/java/jdk1.5.0_06
export JAVA_ROOT=/usr/java/jdk1.5.0_06
__________________
Take a look at my computer programs. Go to my web site.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:23 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.