Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Software Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor recovery router safe mode screen slow sound spyware trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
building sphinx4 helloworld in netbeans - errors

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
johnyjj2's Avatar
Junior Member with 3 posts.
 
Join Date: Nov 2009
07-Nov-2009, 01: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, 5 views)
Reply Bookmark and Share

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 08:26 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.