Install the JDK Development Version on CentOS
If you want access to Java tools like jar and javac, install the development version of the JDK.
# yum install java-1.7.0-openjdk-devel
Add the bin directory to your PATH so you can run the Java programs from anywhere.
# PATH=$PATH:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64/bin
View the classes in a jar file.
# jar tvf dt.jar
0 Mon Jul 01 09:51:04 EDT 2013 META-INF/
71 Mon Jul 01 09:51:04 EDT 2013 META-INF/MANIFEST.MF
0 Mon Jul 01 09:51:00 EDT 2013 javax/
0 Mon Jul 01 09:51:04 EDT 2013 javax/swing/
4486 Mon Jul 01 09:51:04 EDT 2013 javax/swing/JSliderBeanInfo.class
3342 Mon Jul 01 09:51:04 EDT 2013 javax/swing/JFormattedTextFieldBeanInfo.class
3025 Mon Jul 01 09:51:04 EDT 2013 javax/swing/JMenuBarBeanInfo.class
# yum install java-1.7.0-openjdk-devel
Add the bin directory to your PATH so you can run the Java programs from anywhere.
# PATH=$PATH:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64/bin
View the classes in a jar file.
# jar tvf dt.jar
0 Mon Jul 01 09:51:04 EDT 2013 META-INF/
71 Mon Jul 01 09:51:04 EDT 2013 META-INF/MANIFEST.MF
0 Mon Jul 01 09:51:00 EDT 2013 javax/
0 Mon Jul 01 09:51:04 EDT 2013 javax/swing/
4486 Mon Jul 01 09:51:04 EDT 2013 javax/swing/JSliderBeanInfo.class
3342 Mon Jul 01 09:51:04 EDT 2013 javax/swing/JFormattedTextFieldBeanInfo.class
3025 Mon Jul 01 09:51:04 EDT 2013 javax/swing/JMenuBarBeanInfo.class
Comments