|
| | #1 (permalink) |
| Registered User Join Date: Nov 2004 Location: Earth
Posts: 1,249
| Newb Java Question Ok, I have an advanced Java course coming up in college, and I haven't programmed in over a year now and I'm a bit rusty. I'm getting stuck on the actual setup, not the code, which is pretty frustrating. I've only had to do this once before, and since then I believe I reformated... Anyways, I've installed the latest Java runtime environment and development kit updates, and I'm using TextPad as my means of compiling. I did a pretty basic program from my book : Code:
I looked this error up online and I'm getting some reference to changing classpaths for every program. This is definitely NOT how I remember doing it when I programmed previously and I'm having trouble remembering how to get it to compile/run fine without having to alter classpaths every time I create a new program. Do I need to save my files in a particular location or what? This is going to bug me. ![]() |
| | |
| | #3 (permalink) | |
| CHARLIE DON'T SURF! Join Date: Jul 2004
Posts: 778
| Quote:
Also, you might try this at your command prompt: C:\whatever\> set CLASSPATH=%CLASSPATH%;.; As for changing classpaths every program, just go add the ".;" part to CLASSPATH in your Environment Variables (My Computer -> Properties -> Advanced (tab) -> Environment Variables button As for Eclipse, yep it's fucking awesome. You might want to learn the language before you learn the tool, although the almost real-time error reporting saves time. Last edited by Kallian : 09-04-2006 at 08:33 PM. | |
| | |
| | #5 (permalink) |
| Registered User Join Date: Nov 2004 Location: Earth
Posts: 1,249
| Don't think Eclipse is allowed: jGRASP, Crimson Editor, jEdit, Lite Edit 1.0, Smart Editor, TextPad, TxtPro, UltraEdit are my options. Regarding setting the class path, isn't there a way to run it straight from TextPad using "Run Java Application"? |
| | |
| | #6 (permalink) |
| So there's this plane on a treadmill... Join Date: Jan 2005 Location: Southern California
Posts: 2,935
+5 Internets | Haha that sucks. Just use it anyways till you get up on your feet, then switch over lol. I can understand why your teacher wouldnt want you to use it though. Its like learning to do arithmatic, then when your done, your teacher shows you this cool thing called a calculator. =) |
| | |
| | #7 (permalink) | |
| CHARLIE DON'T SURF! Join Date: Jul 2004
Posts: 778
| Quote:
Also, if you're programming at home, I don't see why you can't use Eclipse. As long as you send just the .java files (when you turn in homework) and no eclipse files (like .classpath), it's not traceable. Last edited by Kallian : 09-04-2006 at 08:48 PM. | |
| | |
| | #8 (permalink) |
| Registered User Join Date: Nov 2004 Location: Earth
Posts: 1,249
| Using JGrasp now, and it compiles/runs fine. Not sure what's up with Textpad, but it does seem strange that it's not working, even after setting the correct path in my system's environment variables. |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |