forumsdrawing discussionUpdated JTablet Linux Port!
 
jigpu (Oct 25, 2007)
Not sure if this is the correct spot in the forum for this post, but I've recently been working on updating the Linux port of JTablet. Currently the code compiles and runs on my system, allowing me to make use of my Graphire4's pressure sensitivity and other features.

The code is not yet perfect, so I was hoping to find some Linux users willing to beta test the port for me. I've started a thread (http://www.ocforums.com/showthread.php?t=532663) in the Linux section of a forum I frequent and am waiting for some results. The most likely problem you'll run into is compile problems, since my makefile relies on a program "java-config" which I'm sure is provided with distros other than Gentoo. Hopefully with your help I'll be able to work most of the bugs out before marcello merges it with JTablet.

JigPu
  icon
Axil62 (Oct 25, 2007)
I think you're a hero of sorts just for doing that. I've loaded Linux a few times only to go back to windows after a short time for reasons like not being able to use my pens sensitivity here. If I ever decide to use Linux again I'll definitely try your code.
 
nyrell (edited Oct 27, 2007)
I gave it a try on kubuntu 7.10. As you suspected the make got stuck on java-config.

What is the purpose of java-config? I guess it should be possible to find a workaround.
 
jigpu (edited Oct 29, 2007)
java-config is a utility that tracks the VM used by the current user (or the default system VM). It is used in the Makefile to get the JDK or JRE home directory. You'll find "java-config --jdk-home" and "java-config --jre-home" scattered in Makefile.linux and Makefile.linux.all. On my system, calling the former spits out "/opt/sun-jdk-1.6.0.02" (Google makes me think the path for Ububtu is probably "/opt/jdk1.6/"). If there is are variables $JDK_HOME and $JAVA_HOME or similar in kubuntu, they could be used as a replacement.

If there dosen't seem to be anything like that, look for the "javac" compiler. javac is located in $JDK_HOME/bin so you can set the $JDK_HOME and $JAVA_HOME variables as appropriate ($JAVA_HOME will likely be $JDK_HOME/jre though if you don't use the JDK's internal JRE then things probably won't work).

EDIT: Since I have $JAVA_HOME and $JDK_HOME defined on my system, I'll make another update since I'm sure those two variables are more supported than java-config :) Hopefully you've got those defined (just run "echo $JAVA_HOME" to see)

EDIT2: Woah... The forum enforces no double-posting! That's kinda a cool little feature (speaking as a moderator) :) I've uploaded a new version of the .ZIP file ("linux3") to the first post in the thread which makes use of environment variables instead of java-config. You now need to run the commands as root, sudo will not work! (this is due to sudo not passing along environment variables: the make will fail complaining about a nonexistant directory). Hopefully this lets you get a little further in your test :)

JigPu
 
post reply
You need to be logged in to post a comment. If you don't have an account, sign up now!