Tech and travel

Category: Java

Check if Java is installed in Oracle

2007-06-06

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

2002-10-24

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 echo $jarfile ":"; jar tf $jarfile | grep -i $1; done; Save this to a file (eg jwhich), set the permissions to execute. make sure it is on the path and then type : > jwhich customer

Copyright (c) 2024 Michel Hollands