Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
building sphinx4 helloworld in netbeans - errors

Reply  
Thread Tools
johnyjj2's Avatar
Junior Member with 3 posts.
 
Join Date: Nov 2009
07-Nov-2009, 02:57 PM #1
building sphinx4 helloworld in netbeans - errors
Hello :-)!

There is a problem with building project in NetBeans.

I've got two directories sphinx4-1.0beta3-src and sphinx4-1.0beta3-bin, which are part of speech recognition system CMU Sphinx, Sphinx4 is written in Java. In the directory S:\tutorial\sphinx4-1.0beta3-bin\bin I've got some .jar files, e.g. HelloDigits.jar. In S:\tutorial\sphinx4-1.0beta3-src there is no bin directory, however there are some directories here S:\tutorial\sphinx4-1.0beta3-src\src\apps\edu\cmu\sphinx\demo, e.g. S:\tutorial\sphinx4-1.0beta3-src\src\apps\edu\cmu\sphinx\demo\hellodigits contains five files: digits.gram, hellodigits.config.xml, HelloDigits.java, hellodigits.Manifest, README.html. The file readme is the same as here: http://cmusphinx.sourceforge.net/sph...ld/README.html . I'm sure I've got jsapi.jar.

In other words in one directory (sphinx4-1.0beta3-bin) I have got executable .jar files (or rather not executable, but to be interpreted by JVM). In other (sphinx4-1.0beta3-src) I have got source codes of those applications. There are some additional files, not only .java source code. The most important are two of them, i.e. .java and .xml.

In order to run the HelloDigits.jar I do the following in Command Prompt "S:\tutorial\sphinx4-1.0beta3-bin\java -mx256m -jar bin/HelloWorld.jar". It shows me proper thing, i.e. asks me to start speaking.

OK, so I know how to run already existing application. But if I'd like to create my own, I need to follow this http://cmusphinx.sourceforge.net/sphinx4/#setupide . First of all I create new project (File -> New Project; I leave default values). I need to follow first step. In Projects -> Source Packages I've got "javaapplication -> Main.java". I simply drag-and-drop those three folders from S:\tutorial\sphinx4-1.0beta3-src\src (those are apps, research, sphinx4) and after some seconds I've got several more things in Source Packages, e.g. "apps.edu.cmu.sphinx.demo". In order to fulfill the second step, I click right mouse button on Libraries and choose "Add JAR/Folder". I add from this directory S:\tutorial\sphinx4-1.0beta3-src\lib three files, i.e. js.jar, jsapi.jar and tags.jar. It was surprise for me that there was not tags.jar in S:\tutorial\sphinx4-1.0beta3-src\lib so I copied it from sphinx4-1.0beta3-src directory. Now I've got four things in Libraries, three new and one already existing (JDK 1.6 (Default)).

In Main.java I've got default code of NetBeans which is definitely not what I want to have. Some tips how to create my own applications are here http://cmusphinx.sourceforge.net/sph...ml#hellodigits . I replace default code completely with that one from example. I click "Build main project" in the menu. After some time it creates me C:\Documents and Settings\MainAccount\Moje dokumenty\NetBeansProjects\JavaApplication4 and there is unfortunately "BUILD FAILED (total time: 8 seconds)". Those errors are included with this post.

What should I do to build the project properly?

Thanks very much for your help in advance :-)!
Greetings :-)!
Attached Files
File Type: txt 123b errors when building helloworld in netbeans.txt (26.7 KB, 41 views)
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:04 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.