This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Jane Dunne

Greenhorn
+ Follow
since Feb 14, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jane Dunne

Hi,

I have a simple Java application to play some sound files. I've tried wav, mp3 and rmf but when i run my app I can't actually hear the sounds. Any suggestions on why and how I could fix this?

Thanks
14 years ago
Hi,

I have a simple Java application to play some sound files. I've tried wav, mp3 and rmf but when i run my app I can't actually hear the sounds. Any suggestions on why and how I could fix this?

Thanks
14 years ago
new Date.toString() worked. Thanks alot!
14 years ago
Hi,
I'm trying to display the time when a user logs out of my application. I'm using
System.out.println(System.currentTimeMillis());
but it keeps returning 1153135669261 every time. How can I capture the current time and display it in hours, minutes and seconds?

Thanks alot
14 years ago
Hi,
I was wondering if anyone could tell me how I could go about communicating with a Windows application? Specifically, I want to ask it to resume when a user clicks a button on my interface.

What I have at the moment is the following, but the tabtip application still won't open up.

String app = new String("..../tabtip.exe");
Runtime.getRuntime().exec("taskkill -im app");
...
Runtime.getRuntime.exec(app);

I know this code is correct as it works for other applications. It was suggested to me that I pass a /resume parameter to the tabtip application but I'm not sure how to tie this into my code above as I'm not familiar with passing messages to Windows apps.

Any help would be great. Thanks
14 years ago
Hi,
I need to communicate with a windows process through Java. Specifically, I need to kill a Tablet PC input panel process so I can then open the panel up through a Swing button. I'm not sure how to go about killing the process through Java however, so any help would be great.
Thanks,
Jane
14 years ago
Hi,
I want to launch an executable when the user clicks on a swing button but am not sure of how to do this. Any ideas?

Thanks.
14 years ago
Initially the MapLayer class ran ok on it's own. I'm now trying to build on the app..so MapLayer calls on other classes which in turn call other classes etc. It all works fine on my desktop though so I don't think the files are corrupt. Is there any other reason why a class file could be truncated?
14 years ago
Hi, I'm having a problem running an app on my iPaq. The Java version is 1.3.1 and on my desktop it's 1.3.1_13. The app runs fine on my desktop but when I try to run it on the PDA i get the following error:

Exception in thread "main" java.lang.ClassFormatError: MapLayer (Truncated class
file)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)

I can't tell from the above which of my classes is causing the error. Does anyone know why this might be happening? Any help greatly appreciated..
14 years ago
Hi, I'm using the JavaSpeech API and I want to dictate information into my application. I've already inputted speech using a rule grammar as follows:

FileReader grammar1 = new FileReader("gram.txt");
RuleGrammar rg = recognizer.loadJSGF(grammar1);
rg.setEnabled(true);

I'm not sure how to go about loading a dictation grammar though, as you don't specify a particular set of rules in a text file. This is probably a very simple question but I can't seem to find the answer anywhere! Any help would be greatly appreciated.
15 years ago
Hi,
I'm trying to run an application that depends on JavaBeans from within CrEme, a JVM for PocketPC that runs a subset of JDK 1.3.1. However JavaBeans is not supported, I'm getting an error:
'java.lang.noClassDefFoundError: java/beans/beancontext/BeanContextChild'

So I'm trying to package JavaBeans classes from JDK 1.3.1 into a jar file for use with CrEme. I've created a jar file called java.jar which includes a beans folder, with class files and a beancontext folder, which in turn contains class files including BeanContextChild.class. So the hierarchy for this class file within the jar file is beans/beancontext/BeanContextChild. I've included the jar file in my classpath. But I'm still getting the error. I was wondering if I'm packaging the class files and folders correctly so that they can be found by the application? Any help greatly appreciated!
15 years ago
I actually had both classes12.zip and ojdbc14.jar in my classpath originally. I played around with them a bit, and changed the order of them in the classpath, putting classes12.zip first, followed by ojdbc14.jar. I wasn't aware that the order of classes in a classpath made any difference, but this seemed to work and I no longer have the error. So thanks!
Hi,
I'm trying to run an application that connects to an Oracle server. It runs fine from within JDeveloper. However I need to be able to run it from the command line but when I try to do this I get an error:
java.lang.NoClassDefFoundError: java/sql/Savepoint

I'm using jdk1.4.1 and I have all the Oracle classes/jars I need in my classpath. Any help on this would be greatly appreciated as I have no experience with Oracle or SQL.

Thanks!
Hi, I'm trying to run a JavaBeans based app on a PDA running Java 1.1.8 but am getting an error:
'NOClassDefFoundError:java/beans/beancontext/BeanContextChild'

I realise this is because the BeanContextChild class is only available from Java 1.2 but I need to know if there is some way to get around this as updating to a newer jdk is not an option. Could I possibly add this class or the beancontext package to my existing libraries for example and if so where would I find them?

Any help would be greatly appreciated as this is quite urgent.

Thanks!
15 years ago