Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: unresolved compilation process

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Thanked 0 Times in 0 Posts

    Default unresolved compilation process

    Hello. This might be easy for someone but I have dealt with several errors today and this being the last error that i just could not figure out. I am a newbie so pardon me if i am clueless...within my eclipse ide i am getting this error:
    Exception in thread "main" java.lang.Error: Unresolved compilation problem:

    at edu.cmu.sphinx.demo.robottest.RobotTest.main(Robot Test.java:19)

    When i lookup like 19 (which I have tried to make changes to so its not the way it was yet there is still an error):
    package edu.cmu.sphinx.demo.robottest;
    import edu.cmu.sphinx.frontend.util.Microphone;
    import edu.cmu.sphinx.recognizer.Recognizer;
    import edu.cmu.sphinx.result.Result;
    import edu.cmu.sphinx.util.props.ConfigurationManager;
    public class RobotTest {
    	 * @param args
    	public static void main(String[] args) {
    		// TODO Auto-generated method stub
    		ConfigurationManager cm;
            if (args.length > 0) {
                cm = new ConfigurationManager(args[0]); 
            } else {
                cm = new ConfigurationManager(RobotTest.class.getResource("robottest.config.xml"));
            Recognizer recognizer = (Recognizer) cm.lookup("recognizer");
            // start the microphone or exit if the programm if this is not possible
            Microphone microphone = (Microphone) cm.lookup("microphone");
            if (!microphone.startRecording()) {
                System.out.println("Cannot start microphone.");
            System.out.println("Say: anything from the RobotTest.gram");
            // loop the recognition until the programm exits.
            while (true) {
                System.out.println("Start speaking. Press Ctrl-C to quit.\n");
                Result result = recognizer.recognize();
                if (result != null) {
                    String resultText = result.getBestFinalResultNoFiller();
                    System.out.println("You said: " + resultText + '\n');
                } else {
                    System.out.println("I can't hear what you said.\n");

    I will appreciate any help!

  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    United Kingdom
    My Mood
    Thanked 293 Times in 226 Posts
    Blog Entries

    Default Re: unresolved compilation process

    This is going to be hard for us to test as you are using the non standard import edu.cmu.sphinx..

    Where can we download this from? I suggest Googling the Exception.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    On vacation
    Thanked 2,425 Times in 2,378 Posts

    Default Re: unresolved compilation process

    Which line is the one with the error? Can you copy and paste it here
    or edit the original post and comment it: //<<<<<<<<< LINE with error

Similar Threads

  1. Dynamic compilation problem
    By hemanth.yerra in forum What's Wrong With My Code?
    Replies: 4
    Last Post: November 29th, 2010, 10:51 AM
  2. A problem with command line compilation
    By goodguy in forum Java Theory & Questions
    Replies: 4
    Last Post: August 2nd, 2010, 10:58 AM
  3. Kill a process
    By subhvi in forum Java Theory & Questions
    Replies: 5
    Last Post: January 14th, 2010, 09:11 PM
  4. process control
    By ttsdinesh in forum Java Native Interface
    Replies: 6
    Last Post: October 27th, 2009, 06:29 PM
  5. Replies: 6
    Last Post: April 29th, 2009, 09:35 AM