LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Java Failing to Run... (https://www.linuxquestions.org/questions/red-hat-31/java-failing-to-run-299806/)

javaman21011 03-09-2005 07:47 PM

Java Failing to Run...
 
Can anyone explain what this means and how to fix it before Friday 5pm:
[lees01@OITLNX ~/cs210]$ gcj -o --main=SetCalculatorMain SetCalculatorMainPackage/SetCalculatorMain.java
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
/tmp/cclcOCaL.o(.text+0x31): In function `SetCalculatorMainPackage::SetCalculatorMain::main(JArray<java::lang::String*>*)':
: undefined reference to `SetCalculatorMainPackage::SetCalculator::class$'
/tmp/cclcOCaL.o(.text+0x44): In function `SetCalculatorMainPackage::SetCalculatorMain::main(JArray<java::lang::String*>*)':
: undefined reference to `SetCalculatorMainPackage::SetCalculator::SetCalculator()'
collect2: ld returned 1 exit status

rose_bud4201 03-10-2005 02:27 PM

Usually an error like that means that for whatever reason, it's not getting what it expects from the input file. In this case, it can't figure out what "SetCalculatorMain" is.

Unfortunately, I'm not at all familiar with gcj. Are you required to use that, or can you use good ol' javac?


All times are GMT -5. The time now is 02:17 AM.