Java //Help

Posted by Ferret on Dec. 10, 2009, 11:37 p.m.

Thank you everyone who helped me in my last blog.

I've tried out the things that you guys suggested to me and I still am without my java…

So I list.

Eclipse

Still giving me trouble, I don't want to toy with it anymore.

Net Beans

My god. Sure it's easy to set up, no problems, but then it forces me to make a project first. Fine by me, I've worked with projects before. But then I try to compile and it starts spewing out folders into my java folders. Very unnecessary folders might I add. I hate it when a program (besides explorer) creates folders… So none of that…

Notepad++

I liked this program from the beginning. Does the color highlights, can have multiple tabs, and speaks every language I could ever consume. Small problem, it doesn't compile (aka .java to .class). So those small cows told me to use command lines with NP++. That would be great, I would get to use the simple but useful notepad++ and not have to create folders everywhere for projects I'm messing around with. Sooo I do the command line and it doesn't work… (yes I use the javac, I tried changing the directory to the file and used javac) After messing a bit with command lines I've concluded that Windows does not know where my java stuff is. Sadly I do not understand how to change the path for windows (Tutorials were old…)

So I cry out to small cows and anyone else who could help in this situation. My folder is "C:\Program Files (x86)\Java" and that contains "jdk1.6.0_14" "jdk1.6.0_17" "jre1.6.0_06" "jre1.6.0_16" and "jre6". Am I missing anything? I did basic install of jdk from the sun website.

Comments

Scott_AW 14 years, 3 months ago

Sounds awful. I too am bothered by how much junk the IDEs produce, its like its over-over compensating or something.

Could you possibly do the work in Notepad ++ and open in Net Beans, provided its a single java file, you can just compile it alone.

I need to find time to get more involved into those, otherwise I'd be more helpful.

Ferret 14 years, 3 months ago

Nope, can't compile without projects and file spewing.

Scott_AW 14 years, 3 months ago

Thats just wonderful.

tylerthemiler 14 years, 3 months ago

If you want an easy IDE for java try jgrasp:

http://www.jgrasp.org/

Pretty cool data structure visualization for debugging too. I use eclipse myself because its supported for android development but I started out on jgrasp.

Kaz 14 years, 3 months ago

Quote:
But then I try to compile and it starts spewing out folders into my java folders. Very unnecessary folders might I add. I hate it when a program (besides explorer) creates folders… So none of that…
That's what most IDEs do. Visual Basic, C++, Java. Not sure if Python does, never used it much.

Josea 14 years, 3 months ago

If you actually read the Sun's page on installing the Java SDK properly you wouldn't have any issues with javac.

You have to get the full path to the bin directory of the SDK, in your case it is probably 'C:\Program Files (x86)\Java\jdk1.6.0_17\bin'

One you get that path you have to set it in your environment variables in Control Panel -> System -> ??? -> Environment Variables

There will be two boxes, one for user variables and other for systems variables. In both search for a varfiable called 'PATH' or 'path'. If it has something, append a semicolon (';') and the SDK path. If it doesn't exist, create it and paste the path, without the semicolon.

Done.

How do I know this? I did this yesterday. Funny fact, the guys next to me also had problems with this, all because nobody READS the installation instructions. It's all in Sun's website.

Also, installing Java in linux is waaay easier…

PD: in case you don't know this already, when you are at the crappy Windows command line (not PowerShell), cd changes directories, cd .. moves you one folder up in the directory hierarchy. Now, I'd like to know a command that would do the equivalent of bash's 'ls'…

Cesque 14 years, 3 months ago

Hehe, I remember having issues with NetBeans… but I'm a total noob.

PY 14 years, 3 months ago

@Josea: "dir /W" not do you? Or do you just hate on windows' command line just because.

It might not be quite bash-level, but it's nowhere near as bad as people say. (At least, it's not as soon as you grab Cygwin or UnxUtils, and python/perl)

You'd have known about /w if you'd read the help page, by the way!

Josea 14 years, 3 months ago

Quote:
You'd have known about /w if you'd read the help page, by the way!
Indeed, but I do hate the Windows command line. It's not pretty :)

Ferret 14 years, 3 months ago

Thank you very much Josea and everyone else for your input!

It ends up all I needed was what I should name the variable. In my system variables there was something called 'CLASSPATH' and so I was editing that… But I fixed it back to what it was and added 'path'. Now everything works. So I am going to be using Notepad++ (mainly cuz it will highlight junk and organize easily) and then command lines to compile. Thank you sooo much.
Quote:
@Josea: "dir /W" not do you? Or do you just hate on windows' command line just because.

It might not be quite bash-level, but it's nowhere near as bad as people say. (At least, it's not as soon as you grab Cygwin or UnxUtils, and python/perl)
Is it really that bad? I think it's pretty simple to work with.