₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,083 members, 8,420,223 topics. Date: Thursday, 04 June 2026 at 01:58 PM

Toggle theme

How To Set Java Classpath Variables - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHow To Set Java Classpath Variables (1376 Views)

1 Reply (Go Down)

How To Set Java Classpath Variables by hobilink(op): 8:45pm On Aug 25, 2011
Please, what are the steps involves in setting java classpath variables in order to compile .java file to .class file.
Re: How To Set Java Classpath Variables by Fayimora(m): 11:12pm On Aug 25, 2011
Honestly speaking, you dont wanna mess with your environment variables. Just install the JRE and JDK and compile.
Re: How To Set Java Classpath Variables by Nobody:
Re: How To Set Java Classpath Variables by Fayimora(m): 1:27am On Aug 26, 2011
Its stil not a good idea for a beginner to start messing around with stuffs(environment variables) he doesn't even understand. God knows how many systems(frm my course mates) I have had to fix because they messed with those variables. A simple install of the JRE and JDK is enough for compiling java source files.

However, if your system is not satisfied with that, then there are lot of thing to consider. Some systems use Program Files(x86) and some use Program Files as the directory for Java. Thats just the most common one and if you look at the link you posted, it uses Program Files. You can also see cases where the system has multiple versions of Java installed.

These small things must be taken into consideration and in most cases you only see people asking such questions when they have read some article and messed with their environment variables and then unable to fix it.
Re: How To Set Java Classpath Variables by Nobody:
Re: How To Set Java Classpath Variables by Fayimora(m): 1:54am On Aug 26, 2011
Well you are right! But do you really want to be held responsible for 'damaging' someone's computer?, And to worsen the case, you cant see it(the computer) physically so fixing it is a pain!
Re: How To Set Java Classpath Variables by Nobody:
Re: How To Set Java Classpath Variables by Fayimora(m): 2:10am On Aug 26, 2011
HAhahahahahahahahhahahahahhahahah lmfaoooooo!!!!!!!!
1 Reply

Help Needed In Creating Session VariablesJunit: How To Set Classpath On Windows XpJunit: How To Set Classpath On Windows Xp234

Which Python Web Framework Do You Use For Your Web ApplicationI Feel Bored As My Skills In Programing Might Waste!Linear Programming In Csharp