FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 08-24-2012, 01:35 AM
Thufir
 
Default derby from the CLI

I'm kinda sorta able to use derby ij:


root@dur:~/apache-james-3.0-beta4/var/store/derby#
root@dur:~/apache-james-3.0-beta4/var/store/derby# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
root@dur:~/apache-james-3.0-beta4/var/store/derby#
root@dur:~/apache-james-3.0-beta4/var/store/derby# echo $DERBY_INSTALL
/opt/db-derby-10.9.1.0-bin/lib/
root@dur:~/apache-james-3.0-beta4/var/store/derby#
root@dur:~/apache-james-3.0-beta4/var/store/derby# echo $DERBY_HOME
/opt/db-derby-10.9.1.0-bin/
root@dur:~/apache-james-3.0-beta4/var/store/derby#
root@dur:~/apache-james-3.0-beta4/var/store/derby# cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/
games"
JAVA_HOME="/usr/lib/jvm/java-6-openjdk-i386/jre/"
DERBY_HOME="/opt/db-derby-10.9.1.0-bin/"
root@dur:~/apache-james-3.0-beta4/var/store/derby#
root@dur:~/apache-james-3.0-beta4/var/store/derby# echo $CLASSPATH
/opt/db-derby-10.9.1.0-bin//lib/derby.jar:/opt/db-derby-10.9.1.0-bin//lib/
derbytools.jar:
root@dur:~/apache-james-3.0-beta4/var/store/derby#
root@dur:~/apache-james-3.0-beta4/var/store/derby# java
org.apache.derby.tools.ij
ij version 10.9
ij> quit;
root@dur:~/apache-james-3.0-beta4/var/store/derby#


However, if I open another console, I get:



thufir@dur:~$
thufir@dur:~$ java org.apache.derby.tools.ij
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
derby/tools/ij
Caused by: java.lang.ClassNotFoundException: org.apache.derby.tools.ij
at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)
Could not find the main class: org.apache.derby.tools.ij. Program will
exit.
thufir@dur:~$
thufir@dur:~$
thufir@dur:~$ sudo su -
[sudo] password for thufir:



root@dur:~#
root@dur:~# ll /opt/db-derby-10.9.1.0-bin/bin/setNetworkClientCP
-rwxr-xr-x 1 root root 1079 May 23 14:03 /opt/db-derby-10.9.1.0-bin/bin/
setNetworkClientCP*
root@dur:~#
root@dur:~#


surely I don't need to run this setNetworkClientCP script again, do I?




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 12:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org