jtreg-use Digest, Vol 21, Issue 5
Mani Sarkar
sadhak001 at gmail.com
Mon Sep 10 13:00:15 PDT 2012
Hi Jon,
No worries about the name, it was a privilege to called the unforgettable *
main()* function in C/C++ and all such languages.
I'll take your hints on board and have a look the versions - will need ot
enable verbose logging in the ant script to identify the root cause of the
error.
Once I'm successful with building and running JTReg I'll have a good set of
instructions that I can share with the OpenJDK and rest of the java
community.
Thanks.
Regards,
Mani
> Message: 1
> Date: Sun, 09 Sep 2012 17:10:45 -0700
> From: Jonathan Gibbons <jonathan.gibbons at oracle.com>
> Subject: Re: JTReg Build failure via Eclipse under Ubuntu
> To: jtreg-use at openjdk.java.net
> Message-ID: <504D3005.3060709 at oracle.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> One more time ...
>
> Mani,
>
> If you look at the Ant code for the compile-jtreg.usage target, you'll
> see it is just
> running jtreg and saving the output. The contents of the usage.txt
> file could */not/* be
> anything generated by jtreg or standard javac. It looks like you are
> compiling the
> code in a way that it still generates class files in the face of
> compilation errors,
> and the message you see in usage.txt reflects that.
>
> What compiler are you using and what version of jtreg are you trying to
> compile?
>
> -- Jon
>
> On 09/09/2012 11:09 AM, Mani Sarkar wrote:
> > Hi Jonathan,
> >
> > Thanks for the feedback. I got it to build further than the below,
> > although its now stuck at:
> >
> > Buildfile: /home/openjdk/jtreg/make/build.xml
> > -init:
> > import-javahelp:
> > import-javatest:
> > import-junit:
> > import-jtharness:
> > -compile-jtreg.classes:
> > -compile-jtreg.resources:
> > [copy] Copying 114 files to /home/openjdk/jtreg/build/classes
> > -compile-jct.utils:
> > -ant-jct.utils:
> > -compile-jtreg.usage:
> >
> > BUILD FAILED
> > /home/openjdk/jtreg/make/build.xml:265: Java returned: 1
> >
> > Total time: 1 second
> >
> > I had a look at the usage.txt file to see the below:
> >
> > Exception in thread "main" java.lang.Error: Unresolved compilation
> > problem:
> >
> > at com.sun.javatest.regtest.Main.main(Main.java:901)
> >
> >
> > Is this jdk / javac version issue?
> >
> > Regards,
> > Mani
> >
> > On Sun, Sep 9, 2012 at 4:54 PM, Mani Sarkar <sadhak001 at gmail.com
> > <mailto:sadhak001 at gmail.com>> wrote:
> >
> > Hi
> >
> > I finally got around building jtreg in eclipse in Ubuntu 12.04 but
> > got the below build error. I followed the necessary instructions
> > (updating different settings, environment variables) before
> > kicking off the builfd.
> >
> > Any thoughts?
> >
> > Regards,
> > Mani
> >
> > Buildfile: /home/openjdk/jtreg/make/build.xml
> > -init:
> > import-javahelp:
> > import-javatest:
> > import-junit:
> > import-jtharness:
> > -compile-jtreg.classes:
> > [javac] Compiling 4 source files to
> > /home/openjdk/jtreg/build/classes
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:60:
> > cannot find symbol
> > [javac] symbol : class Status
> > [javac] location: package com.sun.javatest
> > [javac] import com.sun.javatest.Status;
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:439:
> > cannot find symbol
> > [javac] symbol : class Status
> > [javac] location: class com.sun.javatest.regtest.AppletWrapper
> > [javac] private static Status status = Status.passed("");
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:34:
> > cannot find symbol
> > [javac] symbol : class Status
> > [javac] location: package com.sun.javatest
> > [javac] import com.sun.javatest.Status;
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/StringArray.java:38:
> > package com.sun.javatest.util does not exist
> > [javac] public class StringArray extends
> > com.sun.javatest.util.StringArray
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:97:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class com.sun.javatest.regtest.AppletWrapper
> > [javac] status = Status.failed("JavaTest Error:
> > Can't read applet args file.");
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:107:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class com.sun.javatest.regtest.AppletWrapper
> > [javac] status = Status.failed("Thread
> > interrupted: " + t.toString());
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:163:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletRunnable
> > [javac] status = Status.failed("Thread
> > interrupted: " + e.toString());
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:228:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletThreadGroup
> > [javac] status = Status.failed("Applet thread
> > threw exception: " + e.toString());
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:288:
> > cannot find symbol
> > [javac] symbol: variable Status
> > [javac] status = Status.failed("Test
> > canceled at user request");
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:356:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletFrame
> > [javac] status = Status.passed("");
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:358:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletFrame
> > [javac] status = Status.passed("");
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:360:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletFrame
> > [javac] status = Status.failed("");
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:362:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletFrame
> > [javac] status = Status.failed("Unexpected
> > result");
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:383:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletFrame
> > [javac] status = Status.error("Unable to
> > instantiate: " + className +
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:388:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletFrame
> > [javac] status = Status.error("Illegal access
> > to test: " + className);
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:394:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.AppletWrapper.AppletFrame
> > [javac] status = Status.error(e.getMessage());
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:439:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class com.sun.javatest.regtest.AppletWrapper
> > [javac] private static Status status = Status.passed("");
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/AppletWrapper.java:633:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class com.sun.javatest.regtest.AppletWaiter
> > [javac] Status.failed("Thread interrupted: " +
> > e.toString()).exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:63:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class com.sun.javatest.regtest.MainWrapper
> > [javac] Status.failed(MAIN_CANT_READ_ARGS).exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:73:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class com.sun.javatest.regtest.MainWrapper
> > [javac] Status.failed(MAIN_THREAD_INTR +
> > Thread.currentThread().getName()).exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:78:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class com.sun.javatest.regtest.MainWrapper
> > [javac] Status.failed(MAIN_THREW_EXCEPT +
> > tg.uncaughtThrowable.toString()).exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:80:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class com.sun.javatest.regtest.MainWrapper
> > [javac] Status.passed("").exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:102:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.MainWrapper.MainThread
> > [javac] Status.failed(MAIN_THREW_EXCEPT +
> > e.getTargetException()).exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:109:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.MainWrapper.MainThread
> > [javac] Status.error(MAIN_CANT_LOAD_TEST + e).exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:116:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.MainWrapper.MainThread
> > [javac] Status.error(MAIN_CANT_FIND_MAIN).exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:123:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.MainWrapper.MainThread
> > [javac] Status.error(e.toString()).exit();
> > [javac] ^
> > [javac]
> >
> /home/openjdk/jtreg/src/share/classes/com/sun/javatest/regtest/MainWrapper.java:143:
> > cannot find symbol
> > [javac] symbol : variable Status
> > [javac] location: class
> > com.sun.javatest.regtest.MainWrapper.MainThreadGroup
> > [javac] Status.failed(MAIN_THREW_EXCEPT +
> > e.toString()).exit();
> > [javac] ^
> > [javac] 27 errors
> >
> > BUILD FAILED
> > /home/openjdk/jtreg/make/build.xml:182: Compile failed; see the
> > compiler error output for details.
> >
> > Total time: 5 seconds
> >
> >
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20120909/038e977d/attachment.html
>
> End of jtreg-use Digest, Vol 21, Issue 5
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20120910/703e0efc/attachment-0001.html
More information about the jtreg-use
mailing list