Solved

axis 1.2 java version problem

Posted on 2007-04-05
3
316 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java: anonymous class 4 38
what is the best Integrated development environment 2 39
dao vs facade design patterns 2 34
Java pass by reference 3 20
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

733 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