[CentOS] Struggling with javac

Tarun Reddy treddy at rallydev.com
Wed Aug 23 18:54:21 UTC 2006


One last note...

The java-1.5.0-sun-compat package requires the jdk rpm from Sun be
installed. It does not actually contain the jdk!

You may also want to add jpackage.org's yum config to your local yum.
You can get more info at jpackage.org

Tarun

On Wed, 2006-08-23 at 12:16 -0600, Tarun Reddy wrote:
> You appear to be wanting to use Sun's java. However, installing the
> jdk-1_5_0_08-linux-i586.rpm RPM won't by default put java(c) in the
> path.
> 
> You can see this with java -verison.
> 
> Please download from jpackage.org
> java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm
> 
> This is a wrapper that will place java and javac in the path and
> correctly modify all the jpackage file locations.
> 
> You can download it directly from
> 
> http://mirrors.dotsrc.org/jpackage/1.6/generic/non-free/RPMS/java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm
> 
> HTH,
> Tarun
> 
> 
> On Tue, 2006-08-22 at 17:24 -0400, John Hinton wrote:
> > I've installed jdk-1_5_0_08-linux-i586.rpm and Tomcat.
> > 
> > Working through some initial test install programs, I am finding that I 
> > can't seem to compile .java files into classes.
> > 
> > For instance...
> > 
> > javac -classpath /usr/local/tomcat/common/lib/servlet.jar HelloWorld.java
> > 
> > as instructed fails with a
> > 
> > gij: unrecognized option -- `-classpath'
> > Try `gij --help' for more information.
> > 
> > So then I notice there is no servlet.jar file, but instead a 
> > servlet-api.jar.. I change the command and it fails with the same 
> > problem. Trying the command without the -class and without the path 
> > fails with path errors. So it's sort of like this -classpath switch is 
> > either pathed wrong somewhere or is deprecated?
> > 
> > This is on a CentOS 3 server. Anybody run into this? Do you have a solution?
> > 
> > Thanks,
> > John Hinton
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos




More information about the CentOS mailing list