?
Solved

axis 1.2 java version problem

Posted on 2007-04-05
3
Medium Priority
?
330 Views
Last Modified: 2013-11-23
Hi,
  I have axis1.2 and j2sdk1.4.2_12 on my machine. I have set my JAVA_HOME to ="C:\j2sdk1.4.2.12".When I compile my files from C:\j2sdk1.4.2_12\bin , i get some class files.However when I run the ant to compile my files , I get class files with different sizes.I printed java.home in my build file and found java.home to be
C:\j2sdk1.4.2.12\jre.Is that the problem?..I need to get the same class files in ant as I did when i compile from bin?.Can you please help?.
Thanks
0
Comment
Question by:see_this
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 18860750
>> I printed java.home in my build file and found java.home to be
C:\j2sdk1.4.2.12\jre.Is that the problem?..

Shouldn't be, but try setting that to C:\j2sdk1.4.2.12 as well. JAVA_HOME is usually the root folder of your JDK installation, not the JRE (however in this case the version would be the same....). JRE_HOME should instead point to the JRE folder but that is not used as frequently.
0
 

Author Comment

by:see_this
ID: 18862462
where do i set this java.home.As far as I read about it..it is immutable and is taken from the build environment.In my build env i am only setting JAVA_HOME.in the ant.cmd file of my ant installation directory the java.home is set to the JAVA_HOME.i cant figure out why it is taking the jre
0
 
LVL 8

Accepted Solution

by:
mhunts earned 1500 total points
ID: 18868615
Look at your path statement to ensure the correct java executable is listed first. You should have in your path %JAVA_HOME%\bin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
A short article about problems I had with the new location API and permissions in Marshmallow
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses
Course of the Month13 days, 14 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question