Controlling javac optimization when compiling
Could someone tell me how to control the optimization performed by javac? Prior to JDK 1.5, javac had a command-line optimization flag, but nothing like it is documented for 1.5.
I ask because I've been using Eclipse 3.1 to debug JDK-compiled Java and Java-via-JSP classes, mostly like a dream. But occasionally I can't step into code selections, usually the very ones causing an Exception - the debugger jumps straight to the Exception handling code. I assume this is because the compiler has done some optimization. btw, I'm compiling using JDK 1.5.0 javac, not whatever Eclipse/Ant would give me.
Thanks in advance.
Jon
Not sure what you mean.
javac (1.4.2)
javac (1.5.0)
Similar Messages
-
Differences in optimizations during compilation between java 1.4 and 1.5
Hi
I have an application which frequently runs into out of memory error. After doing some profiling, I found that it has more to do with the throughput of the application. Because which, messages that have to be polled from a queue are not being dequeued. This application has been compiled in java 1.5. But when I compiled the same in java 1.4, I didn't get into this problem.
When I de-compiled the class files, I found that in 1.5, for every string concatenation, the compiler replaces it with StringBuilder() and appends the string. To check whether this object instantiation might be causing the trouble, I wrote a small snippet:
private static void doWithConcatenationOperator() {
for (int idx = 0; idx < fNumIterations; idx++) {
String result = "Does" + "StringBuilder()" + "reduce"
+ "ThroughPut" + "of the" + "Application";
private static void doWithStringBuilder() {
for (int idx = 0; idx < fNumIterations; idx++) {
(new StringBuilder()).append("Does").append("StringBuilder()")
.append("reduce").append("ThroughPut").append("of the")
.append("Application").toString();
When I iterate through these loops( 1 million iterations), the concatenation operation takes less than 16 milliseconds whereas the StringBuilder takes upwards of 512 milliseconds.
My question being; are there any other so called optimizations that can reduce the throughput when compiled in 1.5.
Thanks
Edited by: Incubus on Jan 18, 2009 11:00 PMIncubus wrote:
say I have a code that does:
public void StringConcat(){
int noOfIter = 10000;
for(int i = 0; i < noOfIter; i++){
String s = "String " + i + " Being " + i + "concatenated " + i + "using " + i + "String" + i + "Builder";
If I compile this in 1.4 ( i.e using javac -source 1.4); the decompiled code looks the same.
But if I do so in 1.5 ( i.e if I decompile the same code compiled using javac -source 1.5), this is how it looks:
public void StringConcat(){
int noOfIter = 10000;
for(int i = 0; i < noOfIter; i++){
String s = (new StringBuilder).append("String ").append( i).append( " Being ").append( i).append( "concatenated ").append( i).append( "using ").append( i).append( "String").append( i).append( "Builder").toString();
The above was the compile time optimization I was talking about.What makes you think that the decompiler is not the problem?
The ONLY difference between 1.5 and 1.4 in that case is that one uses StringBuilder and one uses StringBuffer. And StringBuffer is faster.
Just wanted to know, are there any other differences in compile time optimizations between 1.4 and 1.5.I suggest that you go look at the read me. And I also suggest that you become familar with byte codes and stop assuming that a decompiler is going to tell you anything. -
Errors in log when compiling .CHM files (RH10)
Hello,
For some of our projects, some writers are seeing the following errors when compiling HTML help.
The errors refer to .htm files that do not belong to the project (and they never have). The .htm files are not listed in the root.fpj file, in the project folder, or in source control (Visual SourceSafe). Other writers can open the project and compile without errors, so it suggests that the writer encountering the error has some phantom files on their machine that the compiler is referencing.
We are seeing this with multiple projects, so I thought it was time to ask if anyone else has seen it or knows what might be causing it. It does not seem to have any effect on the .CHM file...everything looks like it is working. But it makes me uncomfortable to publish files knowing there were errors when compiling them.
Thanks,
AmyHi Amy
As you state others have no issues, it would seem to be related to the setup on those writers' machines.
I think I'd approach it like this. Since you are referencing source control, this would mean the real content exists in the source control server. So you should be safe in totally clearing out the Working Folders of the affected PCs. So start there. Delete all files from the working folders of one of the affected PCs. Then open one of the projects that was issuing the warnings (your image listed simple warnings, not errors). This action should cause only the needed files to be copied down from the server.
Then compile and my guess is that the issue will have resolved itself.
And last but not least, I'd also ensure I had a decent backup of the folders in question before I did anything.
Cheers... Rick -
Errors when compiling the web service (SAP Web Service Design Tool)
After downloading and installing the SAP de Web Service Design Tool (for Crystal Reports Server) I created a connection, a simple query and was able to deploy a web services. I tested the web service with an Xcelsius dashboard within InfoView. Thereafter I created a second connection (other name but same ODBC connection / server) and created another simple query with two date(range) parameters and a group by year and month function in order to do a select count(). It executes fine, but when I try to publish the web service I get an error.
There are errors when compiling the web service.
Is does not say whatu2019s wrong or how I can solve this problem.
Who can help me?
Some notes:
1) Within expert mode I used a MONTH() SQL function which does not show in the normal mode.
2) It seams that the u2018administrationu2019 of Web Service Design Tool got u2018corruptedu2019 after only creating the two connections, queries and services mentioned above. I believe so because I could select one of two queries when I created the second service, but within the current connection I had only one query.
Thanks for any help,
Ron
ADDITIONAL INFO: The parameters seam to be the problem. After removing the parameters I can publish the service. But without parameters it is NO SOLOTION.
Edited by: RonKoudijs on Aug 26, 2010 6:28 PMHello Taylan,
I think the error that you received was due to packaging issues.I placed the
UtilClass.java file under a directory called data which was present under
the project directory.
When you want to access a java class, you can either place the compiled
class file in the WEB-INF/classes folder or you can place the java file
under the project directory.
I have attached the sample project that I created with your files.
Let me know if you have any other questions.
Thanks
Raj Alagumalai
WebLogic Workshop Support
"taylan" <[email protected]> wrote in message
news:3d6351b0$[email protected]..
>
I am trying to write a simpe web service in WebLogic Workshop, but havingan error
which I could not understand. Could you please help me? Thanks in advance.
Regards,
Taylan
My web service code is like belows:
import weblogic.jws.control.JwsContext;
import data.*;
public class WebService1
/** @jws:context */
JwsContext context;
* @jws:operation
public UtilClass testType(UtilClass tTest){
UtilClass returnObj=new UtilClass();
if(tTest.getName()!= null){
returnObj.setName(tTest.getName());
return returnObj;
and my UtilClass is placed in the data directory under the same directorywith
my web service code. It is a simpe class as belows:
package data;
public class UtilClass
private String name;
public void setName(String name){
this.name=name;
public String getName(){
return name;
However I got an error when I try to compile the webservice class. Theerror is
like belows:
File Line Message
WebService1.jws 0 Resource found on system classpath: data.UtilClass
Build complete - 1 error(s), 0 warning(s)
[ngroup.zip] -
Error: code too large for try statement, when compiling a big java file.
Hi,
I have a big java file ( around 16000 lines). When compiling it, I got following error message:
MyMain.java:15233: code too large for try statement
} catch ( Throwable t ) {
In MyMain.java, I just repeat following statements about 1000 times.
try {
if ( year >= 2002 ) {
System.out.println( "year: Evaluation version is not valid" );
} else {
System.out.println( "year: Evaluation version is still valid" );
} catch ( Throwable t ) {
if ( year >= 2002 ) {
System.out.println( "year: Evaluation version is not valid" );
} else {
System.out.println( "year: Evaluation version is still valid" );
I tried 1.3 and 1.4 javac compiler, there was some error.
How to make compiler to compile this code?
Thanks,Hi,
I have a big java file ( around 16000 lines). When
compiling it, I got following error message:
MyMain.java:15233: code too large for try statement
} catch ( Throwable t ) {
I tried 1.3 and 1.4 javac compiler, there was some
error.
How to make compiler to compile this code?
You don't. Each method has an absolute limit on the number of byte codes. You have reached that limit. The limit is part of the specification and JVMs will refuse to run classes that exceed the limit. So even if you could compile it, it wouldn't run.
It is quite common for code generators to generate large monolithic blocks of code. Presumably this is how you got to this spot. Modify the code generator to break it into smaller blocks.
If you did it manually then you did it wrong. And you will have to manually break it into smaller blocks. (And re-examine your design since it is probably wrong.) -
Runtime exception with ADG when compiled with ANT
Hi,
We are using Advanced Data Grid in our project and it compiles and produces a correct SWF file when compiled using the licensed FlexBuilder. This work fine for the development environment, but for the testing and staging environments we use ANT to automate the build process of both Flex and Java components.
When the swf is built using ANT, we get a runtime exception when the page containing the ADG is accessed in web browser. The exception is
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at mx.controls::AdvancedDataGridBaseEx/getSeparator()
at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()
at mx.controls::AdvancedDataGrid/createHeaderSeparators()
at mx.controls::AdvancedDataGridBaseEx/drawSeparators()
at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()
at mx.controls::AdvancedDataGrid/updateDisplayList()
at mx.controls.listClasses::AdvancedListBase/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()
Can you please suggest me how to fix this error?
Thanks in advance.On forums of slackware there was a reference towards the program "free" which is being executed from /usr/bin/free whereas the program on slcakware resides in /bin/free or vice versa. Creating a ymlink should solve the problem. Dunnow (yet) if that works
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Heather Connery ([email protected]):
I have installed Oracle 8.1.7 on Red Hat 6.2.
When I attempt to create a database using dbassist i get an exception during event dispatching:
java.lang.NumberFormatException 41%
at java.lang.RuntimeException.<init>(Compiled Code)
etc.......
Does anyone know if this is a JRE bug? Any ideas what could be wrong here?<HR></BLOCKQUOTE>
null -
Error when compiling SearchBean.jav
IN the scheduler portlet installation steps using the latest JPDK 3.0.9.1, when compiling SearchBean.java i get the following error :
D:\OiAS\Apache\Apache\htdocs\schedulerportlet>javac ConnectionParams.java
D:\OiAS\Apache\Apache\htdocs\schedulerportlet>javac SearchBean.java
SearchBean.java:607: Undefined variable or class name: ConnectionParams
"(DESCRIPTION=(ADDRESS=(HOST="+ConnectionParams.s_hostName+")"+
^
SearchBean.java:608: Undefined variable or class name: ConnectionParams
"(PROTOCOL=tcp)(PORT="+ConnectionParams.s_portNumber+"))"+
^
SearchBean.java:609: Undefined variable or class name: ConnectionParams
"(CONNECT_DATA=(SID="+ConnectionParams.s_databaseSID+")))";
^
3 errors
D:\OiAS\Apache\Apache\htdocs\schedulerportlet>
Can any one tell me the reason of these 3 errors ?
please I need help
nullI've got exactly the same problem.
Some advices would be nice.
Thanks. -
When compiling for IOS in Standard mode an error ocurred:
Error occurred while packaging the application:
Exception in thread "main" com.adobe.air.ipa.ProcessError: Assembler failed
at com.adobe.air.ipa.AOTCompiler.launchProcess(AOTCompiler.java:263)
at com.adobe.air.ipa.AOTCompiler.compileBitcode(AOTCompiler.java:935)
at com.adobe.air.ipa.AOTCompiler.trimAndCompileBitcode(AOTCompiler.java: 763)
at com.adobe.air.ipa.ASMGenerator.main(ASMGenerator.java:72)
Compilation failed while executing : ADT
Flex 4.6
Windows 7
Any idea?Sinious thanks for your answer.
I tried compiling from adt and it worked using this command line script.
@set java_cmd="C:\Program Files\Common Files\Adobe\Adobe Flash CC\jre\bin\java.exe"
@set java_param=-Xmx8192m -jar
@set adt_cmd="C:\Program Files\Adobe\Adobe Flash CC\AIR4.0\lib\adt.jar"
@set target=ipa-test
@set cert=samples.p12
@set cert_pass=12345
@set provisioning=samples.mobileprovision
@set build_file=Testing.ipa
@set desc_files=Testing-app.xml
@set files=Testing.swf assets externalSWF
%java_cmd% %java_param% %adt_cmd% -package -target %target% -storetype pkcs12 -keystore %cert% -storepass %cert_pass% -provisioning-profile %provisioning% %build_file% %desc_files% %files%
pause
Still there is now a different problem.
When trying to compile more than a certain number of external swfs (eg. 350) then the process never ends. The java.exe process consumes all of my memory and it is just stuck there for hours( I've waited for it to compile for nearly 10 hours before I killed the java.exe process). When I randomly remove some swfs then everything goes fine and the process finishes after nearly half an hour or so.
The pc i'm using has an i7 processor with 16gb of ram and the java process consumes it all even though i've set a limit using the -Xmx8192m command.
Is there a problem with the xmx command?
Do i need even more ram to compile a larger number of swfs.
Is there a way to monitor the java process in order to catch any errors that occur or maybe use any different java params to control ram usage limits?
Thank you for your help. -
The Error Message 'Application descriptor file cannot be parsed' shows when compiling (Ctrl + Enter) Adobe AIR for Android applications on Flash Professional CS5.5
This is happening for most of the pupils and staff at our school and they are unable to complete their work.
This also happens on a fresh copy of windows and CS5.5 without any updates and also with all latest updates.
I have tried it on 32-bit and 64-bit CS5, Windows, Air and Java with the same error every time.
There are a small minority of users where this works fine for them with no issue.
I have tried re-setting user profiles.
I have tried a local admin and domain admin account with the same issue
I have noticed however that if the file is moved to the shared area it will compile. If it is on their documents area it will not compile. The users have full control in both locations. This is fine for staff but we are unable to give full control or modify access to the shared area for the pupil's
I have been through the online support section and it directed me to phone Adobe Customer care who informed me that all support has been discontinued for CS5, CS5.5 and CS6 and they will only support creative cloud.
Any ideas what to try next? There is no other information about this error and I cannot work out what is causing it.I have tried and able to package an apk using your XML file.Could you please make sure your XML file starting from line 1 and coloumn 0.Any space will results in the error (Application Descriptor file cannot be parsed)
-Pranali -
RSL failover error when compiling a resource module swf
Hi, I have migrated my application from Flex SDK 3.4 to 4.1. I am moving to Flex SDK 4.5.0.17689 (Hero Milestone build) to use the Spark Form control for better layout of the RTL languages.
I am compiling my resource bundles into SWF files and using them. I am including the required framework bundles also when compiling my resources into SWF. It was working well with SDK 4.1. But when I am trying to compile the resource bundles with SDK 4.5.0, I am getting the following RSL failover.
Loading configuration file C:\Program Files (x86)\Adobe\Adobe Flash Builder Burrito\sdks\4.5.0\frameworks\flex-config.xml
Required RSLs:
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/framework_4.5.0.17689.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.139/textLayout_2.0.0.139.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/spark_4.5.0.17689.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/sparkskins_4.5.0.17689.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/rpc_4.5.0.17689.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/osmf_1.0.0.16316.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/mx_4.5.0.17689.swz with 1 failover.
D:\FlashBuilder_Burritto\myApp\src\MyAppResources_en.swf (39276 bytes)
The SWF files gets generated, I copied it to the deployment folder and when I start the application, I am getting the following error even though this bundle is included in my compile command.
Error: Could not find compiled resource bundle 'core' for locale 'en'.
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\hero_private_bet a\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:367]
at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\hero_private_be ta\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:287]
at mx.core::FlexModuleFactory/installCompiledResourceBundles()[E:\dev\hero_private_beta\fram eworks\projects\framework\src\mx\core\FlexModuleFactory.as:631]
at mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\hero_private_beta\frameworks\projects \framework\src\mx\core\FlexModuleFactory.as:601]
at mx.core::FlexModuleFactory/docFrameListener()[E:\dev\hero_private_beta\frameworks\project s\framework\src\mx\core\FlexModuleFactory.as:129]
This is the command that I use to compile resource bundles into SWF file.
C:\"Program Files (x86)"\Adobe\"Adobe Flash Builder Burrito"\sdks\4.5.0\bin\mxmlc -locale=en -source-path=locale/{locale} -include-resource-bundles=core,effects,skins,styles,components,layout,MyAppResources -output MyAppResources_en.swf
What do I need to do to remove the above error?Dear Vijayudu1,
First things first.
1. Failovers are NOT errors. They are just showing that if particular url set for the RSL(Runtime Shared Libraries) as mentioned in flex-config.xml, is not found then they had used a backup url to get connected.
Have a reference from : http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf674ba-7fff.html
2. Try using: -locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true ,and other paramaters for compiling resource bundles. Hope you may resolve your errors. -
Using JAR files when compiling in Windows command line
Hi all,
I can't get my JAR files to be recognized. Cananyone help with classpaths, syntax etc. when compiling Java in Windows??
Thanks in advance.This page links to detailed descriptions of both the javac and java command syntaxes
http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html#basic -
Silly problem when compiling main class
hi there,
i have a problem when compiling the main class.
the classes used by the main class are not recognized. the compiler can't locate the children classes.
i've already set the path and classpath environment variables, but there's still something missing.
how should i organize my folders in order to be able to compile the main class successfully, please?
thanks.It would be good to have a precise problem description: the actual command used, folder structure and environment variable settings. Even if you have to construct a simple test case with a couple of classes that illustrates the problem.
In the absence of that some generic remarks:
The PATH variable typically points at all the folders that contain executable files that you use often. You can always access other executable files by specifying there full names.
The CLASSPATH variable is typically left unset.
When you use the java tools (like the javac compiler or the java runtime) you can specify the classpath that you want to use with -cp. This will override any CLASSPATH value. So in the simple case of two classes (Main and MyClass), you can put them in anywhere you like (for example C:\MyJavaStuff) and compile and run with:
{noformat}
C:\MyJavaStuff> javac -cp . *.java
C:\MyJavaStuff> java -cp . Main
{noformat}(Mind the dot after -cp))
By a "main" class I guess you mean a class with a static void main(String args[]) method, but I am suspicious of your "child" classes. Perhaps packages are involved. A precise description of the problem would help. -
Hello
I am totally new to Java, but very fascinated. My first attempts however have failed and I do not know why:
When compiling like:
javac SystemInfo.java
I get following Error Message:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
My OS is Windows XP and I am pretty sure that I have set the path-variable correct (just followed the instructions of the book and had no problems).
Could anyone help me with this problem, please?
Thanks a lot
mazarataThanks a lot. The info, I have found about the error message is:
If you see the error message "java.lang.NoClassDefFoundError: com/sun/tools/javac/Main" when you distribute an application, the JAVA_HOME variable is pointing to a J2SE JRE directory, not a J2SE SDK directory, as it should be. This module requires the JAVA_HOME variable to point to a J2SE SDK directory to resolve all library JAR file references.
Well, I guess I folllow your advice and re-install Java, as I have not distributed any application.
Thanks for your help
mazarata -
I have no problems using the javac command to compile files normally but when I try to compile using the following command -
javac - sourcepath <c:\test> *.javaI am getting the following message -
Access is denied.Does anyone know what might be causing this problem, I have full priviledges on this machine so I have no idea what could be causing the problem.
Thanks.javac - sourcepath <c:\test> *.javaWhy not writejavac c:\test\*.java
-
Cannot find symbol error when compiling from cmd
When compile and running program from Eclipse 3.3 everything works fine, but when trying to compile from cmd I get this error:
C:\TEMP\1>javac A.java
A.java:38: cannot find symbol
symbol : class SwingWorker
location: package javax.swing
import javax.swing.SwingWorker;
^
A.java:48: cannot find symbol
symbol : class SwingWorker
location: class A
class Task extends SwingWorker {
^
A.java:109: cannot find symbol
symbol : method addPropertyChangeListener(A)
location: class A.Task
task.addPropertyChangeListener(this);
^
A.java:110: cannot find symbol
symbol : method execute()
location: class A.Task
task.execute();
^
java -version get back: java version "1.6.0_14"....
now, if i copy .class file that Eclipse made and just execute thet .class file from cmd everything works fine.
here is the code, but i think that problems is somwhere else. i tried to serach on google, but... :(
import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingWorker;
public class A extends JPanel implements ActionListener, PropertyChangeListener {
private JProgressBar progressBar;
private JButton startButton;
private JTextArea taskOutput;
private Task task;
class Task extends SwingWorker {
* Main task. Executed in background thread.
// @Override
public Void doInBackground() {
System.out.println("test");
return null;
* Executed in event dispatching thread
// @Override
public void done() {
Toolkit.getDefaultToolkit().beep();
startButton.setEnabled(true);
setCursor(null); //turn off the wait cursor
taskOutput.append("Done!\n");
public A() {
super(new BorderLayout());
//Create the demo's UI.
startButton = new JButton("Start");
startButton.setActionCommand("start");
startButton.addActionListener(this);
progressBar = new JProgressBar(0, 100);
progressBar.setValue(0);
progressBar.setStringPainted(true);
taskOutput = new JTextArea(25, 50);
taskOutput.setMargin(new Insets(5,5,5,5));
taskOutput.setEditable(false);
JPanel panel = new JPanel();
panel.add(startButton);
panel.add(progressBar);
add(panel, BorderLayout.PAGE_START);
add(new JScrollPane(taskOutput), BorderLayout.CENTER);
setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
* Invoked when the user presses the start button.
public void actionPerformed(ActionEvent evt) {
startButton.setEnabled(false);
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
//Instances of javax.swing.SwingWorker are not reusuable, so
//we create new instances as needed.
task = new Task();
task.addPropertyChangeListener(this);
task.execute();
* Invoked when task's progress property changes.
public void propertyChange(PropertyChangeEvent evt) {
if ("progress" == evt.getPropertyName()) {
int progress = (Integer) evt.getNewValue();
progressBar.setValue(progress);
// taskOutput.append(String.format("Completed %d%% of task.\n", task.getProgress()));
* Create the GUI and show it. As with all GUI code, this must run
* on the event-dispatching thread.
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("Veritas Backup");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
JComponent newContentPane = new A();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}thank you very much!!!!Perhaps you are running an older version of javac. What do you get with "javac -version" or try compiling with the full path to jdk 1.6.0_14/bin/javac.
Maybe you are looking for
-
Item Category In Purchase Order
Can anybody tell me quickly Item Category path in Purchasing documents quickly? Thanks, Bhairav
-
Debug mode and for (n in object) loop
Hi, I have a for next loop to read all my xml nodes into an array. Funny (not) thing is that it looses one node when I run my loop in debugging mode. I know there are some problems with the debugger but this one is new to me. Does the debugger have a
-
I am seriously considering upgrading from Dreamweaver CS3 to CS4 and I would like to know whether extensions working under CS3 are installable in CS4 otherwise my code will, in many cases, not work. Anyone can assist ? Thank you all.
-
CP will not save after Importing slides
CP 2 is a flakey one, often requiring 10 times the amount of work to do the simplest of things. My project is two steps away from CP app-so it shouldn't be getting lost. But, after importing only 2 slides into my project it will not save. It just sit
-
10 Gig Module compatibility cause LMS Alert
Hello dears, In one of our customer site, Dual 6509-E switch with VSS mode working fine so far but now when they tried to connect the IBM Blade chassis to the switch using Fiber media PLRXPL-SC-SX3-C1 in IBM Blade chassis side and X2-10GB-SR in core