There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell drive driver drivers email error ethernet excel explorer firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop malware monitor network networking outlook outlook 2003 outlook express partition password printer problem problems ram router slow sound sprtcmd.exe trojan usb virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Java Won't Work!


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Klogg's Avatar
Junior Member with 29 posts.
 
Join Date: Jun 2004
Experience: Advanced
10-Feb-2006, 04: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, 06:18 PM #2
Never mind. I just got the problem fixed with help from another Linux forum.
lotuseclat79's Avatar
Distinguished Member with 10,523 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
18-Feb-2006, 07: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, 12: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.
Closed Thread

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.


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 help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


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 08:38 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.