Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
The following jar files is missing from the classpath: hsqldb.jar
Hi,
I'm just setting up on a new PC and I'm encountering the following error message. Fatal Error: one of the following jar files is missing from the classpath: hsqldb.jar Please make sure you run the application from the shortcut that was installed on your desktop or on the Start menu when you upgraded. I've not come across these before but I also got some regarding jfreechart and jcommon which I seemed to overcome by downloading and pasting into the appropriate folder. I cant seem to get this one sorted though. Any ideas? Thanks David |
btw12342001
You don't mention if you actually have the file. The default location in in the \jts directory.
toggle quoted message
Show quoted text
--- In TWSAPI@..., "DavidP" <af402469@...> wrote:
|
vanx23_alias
Hi David,
I do format one of the computer's partitions and re-install everything from scratch every 6 months. I stumble into this error each time. At first, I was puzzled with this and was wondering what I was doing wrong. I couldn't pinpoint the root cause of this, but I found out that running another web based java application will miraculously make the web based TWS find everything it needs. This bug is easy to reproduce: 1) Format partition 2) Install OS and all required updates (In my case: Windows Server 2008 R2-x64) 3) Install latest Java Virtual machine (In my case: Java x86) 4) Make sure the Java plugging is working fine, by using the "Java Version Verifier" on the Java web site. 5) Finally, try lauching TWS from the InteractiveBrokers web site. Result: Boom! The missing jar's components will appears. After running the TMX's QuoteStream java web application, from QuoteMedia, everything will work fine for TWS. This is NOT something new. As far as I remember, I've been having this error for at least 2 years now. I've always wanted to report this bug to IB. Then, having the burden to prove IB the bug is on their side, kept my procrastinating to report it. As far as I have a work around, I keep procrastinating. I'm surprised that not much people have come across this bug. On the other hand, I guess not much people run TWS, as the first Java application, right of the bat, after having re-install and setup the OS. I know it's not a solution per say. But it may help you to stop searching for something wrong in your installation, which I'm sure is perfectly fine. As a side note: Although I've been silently monitoring this forum for more than a year now, I would like to take the opportunity of this first post/reply to salute all the contributors. Comments on this forum are always constructive, which is much appreciated. Regards, Mike --- In TWSAPI@..., "DavidP" <af402469@...> wrote:
|
Thanks for the reply, yes the file is in C:\jts. The file I am using is hsqldb-1.7.3.3 I also have the folder hsqldb-2.3.0 with its contents as downloaded off the web. I run sampleIBControllerStart and then it brings up the error message.
toggle quoted message
Show quoted text
--- In TWSAPI@..., "btw12342001" <newguy@...> wrote:
|
btw12342001
Can you start TWS normally without using IBController? I don't use that so am not sure how it works. The command I use to start TWS is the default from the installation script.
toggle quoted message
Show quoted text
C:\WINDOWS\system32\javaw.exe -cp jts.jar;hsqldb.jar;jcommon-1.0.12.jar;jfreechart-1.0.9.jar;jhall.jar;other.jar;rss.jar -Dsun.java2d.noddraw=true -Xmx512M -XX:MaxPermSize=128M jclient/LoginFrame C:\jts --- In TWSAPI@..., "DavidP" <af402469@...> wrote:
|
BeeJay (GMX)
If you post the the command you use to start the TWS, you should also mention the TWS version number, cause this command is for older TWS versions.
toggle quoted message
Show quoted text
Most JAR files are now stored in one single JAR file: "total.2012.jar". A more recent command is: C:\WINDOWS\system32\javaw.exe -cp jts.jar;total.2012.jar -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M jclient/LoginFrame C:\Jts Can you start TWS normally without using IBController? I don't use |
btw12342001
Thanks for the info. I'm using 927.7. I don't usually upgrade as long as everything is working and IB doesn't force me to.
toggle quoted message
Show quoted text
--- In TWSAPI@..., "BeeJay (GMX)" <bee_jay61@...> wrote:
|
Thanks for your assistance with this. I tried starting TWS from the IB website. The script seemed to run a litle further after that as the username and password were entered and a log in attempt was made but then the same hsqldb message came up.
toggle quoted message
Show quoted text
I'm using TWS 938.1 which starts and runs flawlessly if I open it by using the TWS icon on the desktop. I'm also using IBControllerV2-9-0 with the default command line. I must admit I don't even know where the command line can be found. I opened various files and did not see anything which looks like what has been posted in this thread. Which file contains the command line? I do see the total.2012.jar file in C:\jts directory. Thanks David --- In TWSAPI@..., "BeeJay (GMX)" <bee_jay61@...> wrote:
|
BeeJay (GMX)
I'm using TWS 938.1 which starts and runs flawlessly if I open it bySorry, I dont use IBController. But there are a lot of users here which can help you how to change the classpath for the TWS in IBController. I do see the total.2012.jar file in C:\jts directory.-Dsun.java2d.noddraw=true -Xmx512M -XX:MaxPermSize=128M jclient/LoginFrame C:\jts |
The defaults classpath in the TWS 938.1h shortcut is C:\Windows\system32\javaw.exe -cp jts.jar;total.2012.jar -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M jclient/LoginFrame C:\Jts
I tried replacing that classpath with this one from earlier in the thread, I was unable to get the shorcut to work after that so I put it back to the default classpath.C:\WINDOWS\system32\javaw.exe -cp jts.jar;total.2012.jar I did also add -hsqldb.jar into the classpath to see what would happen, but it would not run like that. |
If you were typing that command in a terminal window it will not work
unless you first make the default directory C:\Jts. Doing that allows you to specify the jar files without specifying the entire path. So to make a long story short, what if you try using the whole path for the jars in your command line. Instead of specifying the jar files like this: -cp jts.jar;total.2012.jar Do this: -cp C:\\Jts\jts.jar;C:\\Jts\total.2012.jar On Fri, Jul 12, 2013 at 6:56 PM, DavidP <af402469@...> wrote: ** [Non-text portions of this message have been removed] |
to navigate to use esc to dismiss