[java ee programming] Re: javac??

2010-02-26 Thread JKid314159
Hi Again!

Great advice.

What I did was to go into my Environmental Variables and into the
System variables window. I set a variable JAVA_HOME with the value C:
\Program Files\Sun\SDK\jdk and then placed this in the Path as ;
%JAVA_HOME%\bin at the end.

Thank you all for responding.  This is great.  Now I just need to
figure out how to make it work with Eclipse.

Best,
Alex

On Feb 25, 11:06 pm, Mansee Mongia manseemon...@gmail.com wrote:
 Yes you are right you need to create JAVA_HOME variable which would be under
 system variable and its value should be path where Java Development Kit is
 installed (For example C:\Program Files\Java\jdk1.6.0_17)

 The PATH variable which is already defined under System variable - add path
 value up to  bin of jdk ( for example :C:\Program
 Files\Java\jdk1.6.0_17\bin)

-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Re: javac??

2010-02-25 Thread redsword

1) java.exe definately installed
2) I do not think you installed JDK, but  only the JRE is installed .
Thus java is there but not javac
Or other posibilty is that javac is not  in C:\Program Files\Java
\jdk1.6.0_02\bin  
Verify by looking at C:\Program Files\Java\jdk1.6.0_02\bin using
windows explorer and
see if you have the javac.exe
3) verify the javac,exe is in the C:\Program Files\Java
\jdk1.6.0_02\bin  as said above  --
  if yes , assuming the environment variable is set
   open a new command line --  and type in javac it should say
something like
Usage: javac options source files
where possible options include:

if the file is there but -- your still getting error -- check your
path varibale by typing in
set  path

4) this one is a bummer  -- i do not really know why. See if a restart
of windows  help
if not unistall java stuff, then just install just the jdk
5 ) how do know the server is running? Is there a icon on the right
hand side of your task
bar? then right ckick on it -- it should have an option to stop it ,
also in the Start menu
look for Sun I think -- I had the similar problem then I remove that
appliaction server.
I also found it very annoying .
 BTW, the fact that the server is running makes me more confused about
#4( acrobat
cannot find java VM)


Hope it helps

On Feb 23, 8:26 pm, JKid314159 lucky314...@gmail.com wrote:
 Hi!

 I was preparing my new computer for this course and dowloaded the JDK
 + Java EE Bundle.  No previous version of Java was installed on this
 machine.
 1)
 command line:
 java -version
 gives the following:
 java version 1.6.0_17
 Java (TM) SE Runtime Environment (build 1.6.0_17-b04)
 Java HotSpot (TM) 64 Bit Server VM (build 14.3-b01, mixed mode).
 2)
 My HelloWorld.java file did not compile with error message:
 javac is not recognized as an internal...
 3)
 Then I went to Environmental Variables and ammended the path with the
 following:
 C:\Program Files\Java\jdk1.6.0_02\bin.
 The path already had the following in it:
 C:\Program Files\Sun\SDK\bin
 4)
 I went to install the Acrobat reader/viewer for free and it would not
 install and gave error:
 Java VM not installed.
 --
 I think I was suppose to install the SE version.  Also, I started the
 server but did not know how to stop it?

 The JDK is installed and so therefore the JRE is installed and I
 thought this would have what is need?

 Can I ask for your feedback on this?

 Thank you,

 Alex
 OS: Windows

-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Re: javac??

2010-02-25 Thread JKid314159
HI!
Almost Success??

I am not sure this is the best method.  I think I need to make a
JAVA_HOME variable under Environmental Variables under either User
variables for Computer or System variables?  This is because as
other components are added the JAVA_HOME variable as to be reference
such as when setting up Glassfish or Tomcat.  This is what i am
reading today.

So, the question is, does the variable go into the User variables for
Computer or System variables in my Windows 7 system.  The
installation included a variable PATH with the value  C:\Program
Files\Sun\SDK\bin.
But this variable did not work.

The second question, once the variable JAVA_HOME is created how do I
add that to the PATH variable in the System variables?  I need to do
this from the GUI windows interface not the command prompt.

I appreciate your help on this.  Thank you.
Alex

On Feb 24, 7:02 pm, JKid314159 lucky314...@gmail.com wrote:
 Re:  SUCCESS!!!

 Hi!

 I found my javac in the following folder:
 C:\Program Files\Sun\SDK\jdk\bin

 Went into the Environmental Variables and in the System Variables I
 edited Path.  I ammended this path as
 ;C:\Program Files\Sun\SDK\jdk\bin

 I restarted the machine.  I was able to compile at the command line
 interface with javac.  I'll try it in eclipse.

 Thank you to all the people who sent suggestions.  Thank.

 Alex

-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Re: javac??

2010-02-24 Thread JKid314159
Hi again!

I have the following directories on my machine:

Computer\OS(C)\Program Files
Computer\OS(C)\Program Files(x86)
-

I went into the Environmental Variables and have two windows:
Environment Variables
1)-User variables for Family
2)-System variable

In the first window, User variables for Family is set up a variable
called Path which has the following:
C:\Program Files\Sun\SDK\bin
---

I tried the following amendments to this path variable:
C:\Program Files\Sun\SDK\bin.;C:\Program Files\Java\jre6\bin
and
C:\Program Files\Sun\SDK\bin.;C:\Program Files\Java\jdk1.6.0_17\bin
I tried it with the period before the semicolon and without the
period.

I then tried the following in the System variable window amending
Path for the system:
;C:\Program Files\Java\jre6\bin
and
;C:\Program Files\Java\jdk1.6.0_17\bin


I continue to get the javac not recognized.  I looked in my C:\Program
Files\Java folder and found only jre6 folder.  Should there not be a
jdk1.6.0 folder there.  I did not install the SE version separately
but did the EE which I thought would bring this in?

May I ask for your help again?  Thank you.

Alex

-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Re: javac??

2010-02-24 Thread JKid314159
Re:  SUCCESS!!!

Hi!

I found my javac in the following folder:
C:\Program Files\Sun\SDK\jdk\bin

Went into the Environmental Variables and in the System Variables I
edited Path.  I ammended this path as
;C:\Program Files\Sun\SDK\jdk\bin

I restarted the machine.  I was able to compile at the command line
interface with javac.  I'll try it in eclipse.

Thank you to all the people who sent suggestions.  Thank.

Alex

-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


Re: [java ee programming] Re: javac??

2010-02-24 Thread Hari Prasad
Hi Alex,

Cool !!

Whenever we modify things in environment variable, do not restart the
machine, just restart the command prompt ;-)

Regards
Hari

On Thu, Feb 25, 2010 at 5:32 AM, JKid314159 lucky314...@gmail.com wrote:

 Re:  SUCCESS!!!

 Hi!

 I found my javac in the following folder:
 C:\Program Files\Sun\SDK\jdk\bin

 Went into the Environmental Variables and in the System Variables I
 edited Path.  I ammended this path as
 ;C:\Program Files\Sun\SDK\jdk\bin

 I restarted the machine.  I was able to compile at the command line
 interface with javac.  I'll try it in eclipse.

 Thank you to all the people who sent suggestions.  Thank.

 Alex

 --
 You received this message because you are subscribed to the Google
 Groups Java EE (J2EE) Programming with Passion! group.
 To post to this group, send email to
 java-ee-j2ee-programming-with-passion@googlegroups.com
 To unsubscribe from this group, send email to
 java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.comjava-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com
 For more options, visit this group at

 http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en