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

<br>
End of jtreg-use Digest, Vol 21, Issue 5<br>
****************************************<br>
</blockquote></div><br>