Previous Thread
Next Thread
Print Thread
Rate Thread
#8344 03/02/03 12:09 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
alright, this is it. i cant seem to find the java program that i recently installed. by the way, thanks pergesu for the tutorials but i cant use them because i cant get the program runnin. if ne one knows whats wrong or what im not doing correctly, please help

much thanks,
Silent Sniper

#8345 03/02/03 12:23 PM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
Um, what do you mean? You can't find the java compiler? You can't find a program written in Java? You can't find an IDE you installed? What can't you find?

#8346 03/02/03 01:30 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
sry about that. do i use notepad to write the program and open it in java? what do you need to write the programs? i cant find out where you can write java programs at. that is my question.

#8347 03/02/03 05:43 PM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
You just need a text editor. Write the program with any old editor, so notepad, and then compile it.

#8348 03/02/03 10:03 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
lol dont get aggrivated with me please. im such a newbie. so when i finish the program where do i go to compile it cause i cant find the compiler in the java software i downloaded.

once againi appreciate your help very much,
Silent Sniper

#8349 03/03/03 01:20 AM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
You compile it through DOS, or at least I did. check this link...

http://www.javaspot.net/articles.php?action=display&cat=1

this is Pergesu's site. Our resident java guru. His tuts are awsome. I am sure he will also help you more. But these tuts are what you need. Be sure to thank him and tell a friend.

#8350 03/03/03 06:24 AM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
Don't worry, I won't get aggravated. I'm not so sure I cover installing the JDK in my tutorial, I probably should. They've got instructions though. If you've already installed it, then most likely you have to set the PATH environment variable in order to do it easily. What OS are you running? I only know how to do it in Win2K, which is probably not what you're using... But anyway, you need to append the directory which stores all the executables (java, javac, javaw, jar) to that environment variable. So look for the directory you installed everything into, which is probably C:\j2sdk1.4.1_01. Then edit your path variable so it has C:\j2sdk1.4.1_01\bin at the very beginning. I have no clue how to do this in 98/ME/XP, so if someone else wouldn't mind telling him how, I'd appreciate it. I gotta run to school :\

#8351 03/03/03 06:58 AM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
That link goes over installing the SDK in windows. Has everything you need. Sorry I can't be more specific, but I gotta leave. Let me know if you have any problems.

http://java.sun.com/j2se/1.4.1/install-windows.html

#8352 03/03/03 08:22 AM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
ok im totally lost. i dont know what im doing. i set the path and everything but i cant get it to compile i cant find out whats wrong. pleeeeeeeease i need some serious help on java. i might delete the program and start from scratch and see if that might work.

#8353 03/03/03 09:14 AM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
I seem to rember having some issues when I tryed to learn Java.

Lemme think, First what version of windows are you running?

Second what directory did Java SDK install to?

third post what you type into DOS and what happens.

#8354 03/03/03 09:29 AM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
in runnin in windows 98 and i downloaded it to the c drive. then i set the path and tried to compile but it didnt recognize the name

#8355 03/03/03 10:48 AM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
heh, I mean when you installed it. what is the path to it's folder.

something like

c:\program files\JAVA2.1.1


what is the path to the folder java is in, not your program. I think I had to set the path to the compiler javaw or something like that.


Here are the links when pergesu helped me with your problem...

http://rrfn.promodtecnologies.com/yabbse/index.php?board=11;action=display;threadid=795

#8356 03/03/03 02:29 PM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
Have you installed it? Have you run the setup program, and it created a c:\j2sdk1.4.1_01 directory? If you haven't already, do that. Then go ahead and set the path. If you still can't get it working, copy and post the error. But I don't think you've even installed it, so make sure you have first.

#8357 03/03/03 02:59 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
this is what i did

@C:\PROGRA~1\NORTON~1\NAVDX.EXE /Startup
@ECHO OFF
PATH=%PATH%;C:\jdk1.4.1_02/bin;C:\DOS if not exist toscd001 echo DEVICE=C:\DOS\toscdrom.sys >> c:\config.sys
if exist toscd001 c:\Windows\Command\mscdex /D:TOSCD001 /M:10

tell me if that is correct or do i need to do something diferent

#8358 03/03/03 03:37 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
C:\j2sdk1.4.1_02\bin\javac hello.java
says error cant read hello.java

#8359 03/03/03 04:33 PM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
alright, well the problem is is that file isn't in that directory. So go to the directory that you saved hello.java to and compile it.

#8360 03/03/03 08:53 PM
Joined: Mar 2002
Posts: 185
M
Member
Offline
Member
M
Joined: Mar 2002
Posts: 185
In DOS go to the directory that 'hello.java' is in and then type in 'javac hello.java' and try it, or is 'hello.java' already in the same directory as 'javac'? If it is, then I don't know what your problem could be.


Cha want some w***up?

http://www.dopeskill.com
#8361 03/03/03 08:57 PM
Joined: Mar 2002
Posts: 185
M
Member
Offline
Member
M
Joined: Mar 2002
Posts: 185
Damn pergesu, you typed and posted your message while I was typing mine cause I got distracted in the middle of typing it so it took me awhile, oh well.


Cha want some w***up?

http://www.dopeskill.com
#8362 03/06/03 05:01 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
ok but how do i compile? do i just open it in an applet viewer or use dos?

#8363 03/06/03 07:45 PM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
go into a command line (dos), and cd to the directory that has the file. Then run javac filename. Here's an example.

Code
F:\>cd java\map

F:\java\map>javac Map.java

F:\java\map>java Map
**output not shown**
The first line just goes into the directory that has Map.java. The second entry is compiling the file. The third command actually runs the program, and I didn't show the output because it fills up a screen. So that's what you need to do.

#8364 03/07/03 02:26 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
so this is what i did. i created a folder called java to store my programs. i did the "hello world" program and saved it as hello.java. i went to dos and typed in C:\>cd java and it said invalid directory. then i put the program in the bin folder and did C:\>cd j2sdk1.4.1_02\bin and it said invalid directory. then i did C:\>cd java \bin and so on and still got the same invalid directory. should i put C:\>cd java\hello or C:\>cd j2sdk1.4.1_02\bin\hello to do that?

#8365 03/07/03 03:31 PM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
Um, your problem isn't with Java then. It's using the command line... so what exactly are you typing? Can you copy the text for us? Just highlight everything and hit enter, and it's copied. Then paste it in your response.

#8366 03/07/03 06:13 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
C:\WINDOWS>cd java\hello
Invalid directory
C:\WINDOWS>cd java
Invalid directory

i set the path to C:\java

thats basically all i did

#8367 03/07/03 06:15 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
java is the folder that hello.java is in

#8368 03/07/03 06:19 PM
Joined: Mar 2002
Posts: 1,136
P
UGN Elite Poster
Offline
UGN Elite Poster
P
Joined: Mar 2002
Posts: 1,136
well dude, there's your problem. You're trying to switch to a relative dir, and C:\WINDOWS\java doesn't exist. c:\java does. So what you need to type is:
C:\WINDOWS>cd c:\java

#8369 03/07/03 07:56 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
Hello.java:6: cannot resolve symbol
symbol : method printIn (java.lang.String)
location: class java.io.PrintStream
System.out.printIn("Hello, world!");
^

i dont know what the arrow means. do i change it?

#8370 03/07/03 07:58 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
arrow is under dot after out, not under S

#8371 03/07/03 10:09 PM
Joined: Feb 2003
Posts: 21
S
Junior Member
OP Offline
Junior Member
S
Joined: Feb 2003
Posts: 21
nevermind i finally found out the problem and fixed it. by the way thanks pergesu for all of your help on my problem with java. i appreciate it very much.

Silent Sniper

--------------------
This cant be happening!
-Eternal Darkness

#8372 03/08/03 09:22 PM
Joined: Feb 2003
Posts: 7
C
Junior Member
Offline
Junior Member
C
Joined: Feb 2003
Posts: 7
Chris,

Store all of your projects ( class file and your source code ) that you are working on presently in a folder at C:\Java and then store everything that you have completed in a folder labeled C:\Java Projects.

This is what I do and it makes it much easier to work with so when you go into DOS all you have to do is change your path to "C:\j2sdk1.4.0_03" and change your directory to C:\Java ( type "cd c:\Java" at your command prompt without the quotation marks )

I am assuming that you are using pergesu's tutorials as well. If not, pick them up and print them out over at http://www.javaspot.net/articles.php?action=display&cat=1 . They are great and I can't thank pergesu enough.

Catch me on MSN and we can chat about Java.

Peace,
Crackle


Link Copied to Clipboard
Member Spotlight
Posts: 43
Joined: November 2002
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
unreal 1
Crime 1
Ice 1
Dartur 1
Powered by UBB.threads™ PHP Forum Software 7.7.5