Skip to content

Category Archives: Java

Check if Java is installed in Oracle

If you want to know if Java is installed, use the following SQL :

select * from dba_registry;

There should be an entry with comp_id equal to ‘JAVAVM’.

jwhich : which for Java

This little ksh script can be used to find which class file is in which jar file in the current directory. Useful if you have a lib directory full of jar files and your program says ‘cannot find class xxx’.

for jarfile in `ls *.jar`
do
[...]