Recompile with -deprecation
When compiling a tetris program I received the following note at the end of all the errors. What is "-depriociation"? and how can I compile useing it?
Thanks in advance,
David
"Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
21 errors
"
This means that one of the methods you are using has been replaced with a new method. To see which when use the -deprecation flag on javac, i.e.
javac -deprecation YourClassName.java
Similar Messages
-
I have a EJB SLSB and I can deploy it to OC4J 10.1.2.0.2. However upon deployment OC4J is telling me:
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for detailsCan somebody tell me how I can make OC4J recompile EJBs with -deprecation set to true?I suppose you'd be the first to start screaming at
them for all the bugs in the 10.1.3 production
release, if the Oracle guys concentrated more on
getting something out quickly rather than providing a
reliable product.C'mon, the only reason I'm pushing this is the fact that from the (OTN) website it looks like 10.1.3 has been around for years, whereas the truth is that the actual production date is unknown. What I am experiencing around me is Oracle loosing credibility regarding Java/J2EE with their direct competitors already having J2EE 1.4 support. The project I'm currently involved in was forced to use 10.1.2.0.2 since it is the last production release of the Oracle Application Server. This is J2EE 1.3 technology which is fairly old stuff.
And... yes I'm amongst other things a developer and well aware of the challenges that come with creating software. Although in our projects we like to keep a relatively clear scope and not cramp as much features as possible in a version, just to satisfy the checklists :-) -
Recompile with -deprecation for details.
when i am compiling my code i am getting error like this:
abc.java uses or overrides a deprecated API.
Recompile with -deprecation for details.
pls anyone help me about thisI suggest you try searching for answers befor posting a question
http://onesearch.sun.com/search/onesearch/index.jsp?charset=utf-8&qt=+%22-deprecation%22&rf=0&rt=1&nh=10&cs=0&y=7&x=7&col=developer-forums -
Code overrides deprecated API...recompile with
Hi,
Need help compiling SampleProgram(see code below).
(using JDK 1.3.1_06. and JCreator 2.5 build 8)
The following code(see below) compiles with an error:
"Note: C:\Documents and Settings\Alex1\My
Documents\Alex Files\My Java\Lesson
2\SampleProgram.java uses or overrides a deprecated
API.
Note: Recompile with -deprecation for details.
Process completed."
How can I change to make it work? Please help/advise.
Alex
CODE below:
import java.awt.*;
import javax.swing.*;
public class SampleProgram
static JFrame f1;
static JPanel p1;
JButton b1, b2;
SampleProgram()
p1 = new JPanel();
b1 = new JButton("Submit");
b2 = new JButton();
b2.setLabel("Cancel");
p1.add(b1);
p1.add(b2);
public static void main(String args[])
f1 = new JFrame("Sample Application");
f1.getContentPane().add(p1);
f1.setSize(300,300);Compile the progam this way to show u where the deprecation is.
javac -deprecation SampleProgram.java
This show that button.setLabel("Cancel");
has been deprecated.
Why don't you do it just the way you set the label for the submit button.
That's like;
b2 = new JButton("Cancel");
By the way programs runs fine with the deprecation, its not an error. -
Recompile with -Xlint:deprecation, whaat is it?
Hi, all!
When I'm compiling a prgm, I get this note: Recompile with Xlint:deprecation for details.
buttons.java uses or overrides a deprecated API.
I don't know what is it, and what does it prompt me to do.
Your help is highly appreciated.An API you are using has been deprecated ^1^ (should no longer be used, for example Thread.stop ^2^ has been depricated as it is not safe to use).
Compiling with "Xlint:deprecation" will tell you what you are using, you can then look that up in the API to tell you what you need to do instead.
^1^ http://en.wikipedia.org/wiki/Deprecation
^2^ http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#stop() -
Recompile with -Xlint :deprecation for details
hi, i'm new in java
i had tried to write one simple java applet, but when
i compiled this message was come out:
c:> javac applet1.java
Note:applet1.java uses or overrides a depreciated API
Note: recompile with -Xlint :deprecation for detailshi, i'm new in java
i had tried to write one simple java applet, but
when
i compiled this message was come out:
c:> javac applet1.java
Note:applet1.java uses or overrides a depreciated
API
Note: recompile with -Xlint :deprecation for detailsThis is a warning that means that a class or method that you are using in your code is deprecated. A class or a method can be deprecated for several reasons:
e.g. the class/method could contain an error which makes the code unstable, the class/method could be written in a non standard way, the class/method could have been replaced by a more efficient/better/improved class/method
The deprecation message is only a warning. The code will compile even when deprecated. However, most code is deprecated for a reason, so you should try to find out what the substitution is (if one exists).
To find out what the problem is, the java compiler suggests you recompile using -Xlint: deprecation.
So instead of compiling using
javac YourClass.java
type
javac YourClass.java -Xlint:deprecation
You should get a message such as:
C:\Jenjava\Test\PacMan.java:56: warning: [deprecation] isFocusTraversable() in java.awt.Component has been deprecated
public boolean isFocusTraversable(){
Look up the offending method in the API at http://java.sun.com/j2se/1.5.0/docs/api/
It says:
isFocusTraversable
@Deprecated
public boolean isFocusTraversable()Deprecated. As of 1.4, replaced by isFocusable().
So, to get rid of the warning (and use the current method) we replace the isFocusTraversable() with isFocusable().
Make sense?
:) jen -
User defined function in PI 7.1 compilation error "Recompile with -Xlint"
Hi All,
I have a user defined function in PI 7.1 .,which is throwing the following error.
Do i need to add any import statements like "import java.lang.String" in the beginning.
It is unable to recognize the String methods used in the user defined function.
E:\usr\sap\PID\DVEBMGS30\j2ee\cluster\server0\.\temp\classpath_resolver\Map02580a102a0911deb2b20019990eddfd\source\com\sap\xi\tf\_MM_C_to_Goods_.java:276:
cannot find symbol
symbol : method trim()
location: class java.lang.Object
if(container.getParameter("AdjustmentQuantity").trim().startsWith("-")){ ^
Note: E:\usr\sap\PID\DVEBMGS30\j2ee\cluster\server0\.\temp\classpath_resolver\Map02580a102a0911deb2b20019990eddfd\source\com\sap\xi\tf\_MM_C_to_Goods_.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: E:\usr\sap\PID\DVEBMGS30\j2ee\cluster\server0\.\temp\classpath_resolver\Map02580a102a0911deb2b20019990eddfd\source\com\sap\xi\tf\_MM_C_to_Goods_.java
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Any Help greatly appreciated..
Collinscontainer.getParameter() returns Object, not String.
try following:
String aq = (String) container.getParameter("AdjustmentQuantity");
if(aq.trim().startsWith("-"))
Regards
Stefan -
hi, i'm new in java
i had tried to write one simple java applet, but when
i compiled this message was come out:
c:> javac applet1.java
Note:applet1.java uses or overrides a depreciated API
Note: recompile with -Xlint :deprecation for detailsHi , where are the instructions to follow ????
I have got this error too .
java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
I was using jdk1.4 before and my program works fine , but when I started using jdk1.5 I have go the above problem .u tell me how to fix it. -
Use Unchecked or unsafe operations: recompile with -Xlint
hi all..
I'm trying to create a GUI to select the necessary port to open. I got this code from JAVA cookbook:
I'm using windows XP and JDK 1.6..
import java.io.*;
import javax.comm.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
public class PortChooser extends JDialog implements ItemListener {
HashMap map = new HashMap();
String selectedPortName;
CommPortIdentifier selectedPortIdentifier;
JComboBox serialPortsChoice;
JComboBox parallelPortsChoice;
JComboBox other;
SerialPort ttya;
JLabel choice;
protected final int PAD = 5;
public void itemStateChanged(ItemEvent e) {
selectedPortName = (String)((JComboBox)e.getSource()).getSelectedItem();
selectedPortIdentifier = (CommPortIdentifier)map.get(selectedPortName);
choice.setText(selectedPortName);
public String getSelectedName() {
return selectedPortName;
public CommPortIdentifier getSelectedIdentifier() {
return selectedPortIdentifier;
public static void main(String[] ap) {
PortChooser c = new PortChooser(null);
c.setVisible(true);// blocking wait
System.out.println("You chose " + c.getSelectedName() +" (known by " + c.getSelectedIdentifier() + ").");
System.exit(0);
public PortChooser(JFrame parent) {
super(parent, "Port Chooser", true);
makeGUI();
populate();
finishGUI();
protected void makeGUI() {
Container cp = getContentPane();
JPanel centerPanel = new JPanel();
cp.add(BorderLayout.CENTER, centerPanel);
centerPanel.setLayout(new GridLayout(0,2, PAD, PAD));
centerPanel.add(new JLabel("Serial Ports", JLabel.RIGHT));
serialPortsChoice = new JComboBox();
centerPanel.add(serialPortsChoice);
serialPortsChoice.setEnabled(false);
centerPanel.add(new JLabel("Parallel Ports", JLabel.RIGHT));
parallelPortsChoice = new JComboBox();
centerPanel.add(parallelPortsChoice);
parallelPortsChoice.setEnabled(false);
centerPanel.add(new JLabel("Unknown Ports", JLabel.RIGHT));
other = new JComboBox();
centerPanel.add(other);
other.setEnabled(false);
centerPanel.add(new JLabel("Your choice:", JLabel.RIGHT));
centerPanel.add(choice = new JLabel());
JButton okButton;
cp.add(BorderLayout.SOUTH, okButton = new JButton("OK"));
okButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
PortChooser.this.dispose();
/** Populate the ComboBoxes by asking the Java Communications API
* what ports it has. Since the initial information comes from
* a Properties file, it may not exactly reflect your hardware.
protected void populate() {
Enumeration pList = CommPortIdentifier.getPortIdentifiers();
while (pList.hasMoreElements()) {
CommPortIdentifier cpi = (CommPortIdentifier)pList.nextElement();
// System.out.println("Port " + cpi.getName());
map.put(cpi.getName(), cpi);
if (cpi.getPortType() == CommPortIdentifier.PORT_SERIAL) {
serialPortsChoice.setEnabled(true);
serialPortsChoice.addItem(cpi.getName());
else if (cpi.getPortType() == CommPortIdentifier.PORT_PARALLEL) {
parallelPortsChoice.setEnabled(true);
parallelPortsChoice.addItem(cpi.getName());
else {
other.setEnabled(true);
other.addItem(cpi.getName());
serialPortsChoice.setSelectedIndex(-1);
parallelPortsChoice.setSelectedIndex(-1);
protected void finishGUI() {
serialPortsChoice.addItemListener(this);
parallelPortsChoice.addItemListener(this);
other.addItemListener(this);
pack();
//addWindowListener(new WindowCloser(this, true));
}}When i compile this it says PortChooser.java uses unchecked or unsafe operation
recompile with -Xlint(any one know what this is?)
Is it the JDK version i'm using ? First i thought it's a security issue.As in windows is not letting me access the serial ports.
I checked with device manager.My serial ports are open. Ichanged my BIOS settings as well..
(I read inputs from parallel port.But i dont use the comm api for that)
I have installed the rxtx gnu.io package as well..
Tried import gnu.io.* instead of javax.comm.*; still the same compilatiion error!!!
Thanks in advance
goodnews:-(It is basically a warning (not an error) that the compiler gives you to let you know that you are using a raw type where Java now supports generic types.
For example, in the code you use:
HashMap where you can use HashMap<String,String> to let the compiler know that you intend inserting Strings for both the key and the value. The former is considered to be unsafe because the compiler cannot control what is inserted into the HashMap while in the latter case it can ensure that only Strings are used for both keys and values.
The compiler is also letting you know that if you want to see the details of these "unsafe" operations you can use the -Xlint:unchecked option when compiling and the compiler will show you exactly which lines contain the code that is generating the warning. So to compile with this option you would use javac -Xlint:unchecked ClassToCompile. -
Compiler Warning: Recompile with -Xlint
Note: C:\Documents and Settings\*\My Documents\InfixConvertor.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Making a Infix to Postfix program. Doing some research, I understand that it does not need to be fixed, but I really wanna get rid of this. heres the code.
import java.io.*;
import java.util.*;
public class InfixConvertor
// initialize operator Stack
private static Stack operatorS = new Stack();
public static void main(String args[]) throws IOException
String infix;
Scanner in = new Scanner(System.in);
System.out.println ("Enter a valid infix expression: ");
infix = in.nextLine();
System.out.println ("The Postfix expression is : " + IntoPostfix(infix));
// method converts infix expression to postfix notation
private static String IntoPostfix(String infix)
StringTokenizer tokenizer = new StringTokenizer(infix);
// divides the input into tokens for input
String symbol, postfix = "";
while (tokenizer.hasMoreTokens())
// while there is input to be read
symbol = tokenizer.nextToken();
// if it's a number, add it to the string
if (Character.isDigit(symbol.charAt(0)))
postfix = postfix + " " + (Integer.parseInt(symbol));
else if (symbol.equals("("))
// push "("
char operator = '(';
operatorS.push(operator);
else if (symbol.equals(")"))
// push everything back to "("
while (((Character)operatorS.peek()) != '(')
postfix = postfix + " " + operatorS.pop();
operatorS.pop();
else
// print operatorS occurring before it that have greater precedence
while (!operatorS.empty() && !(operatorS.peek()).equals("(")
&& prec(symbol.charAt(0)) <= prec((Character)operatorS.peek()))
postfix = postfix + " " + operatorS.pop();
char operator = symbol.charAt(0);
operatorS.push(operator);
while (!operatorS.empty())
postfix = postfix + " " + operatorS.pop();
return postfix;
// method compares operators to establish precedence
private static int prec(char x)
if (x == '+' || x == '-')
return 1;
if (x == '*' || x == '/')
return 2;
return 0;
}Please help me out. Thanks
JulianYou use "-Xlint:unchecked" as one of your command-line options. So instead of
javac Thingy.javayou do this instead:
javac -Xlint:unchecked Thingy.javaOf course if you already have several command-line options when you do your compiling, then you just need one more. -
Weblogic.appc failed to compile your application. Recompile with the -verbo
[exec] <Jan 25, 2012 9:24:39 AM IST> <Warning> <J2EE> <BEA-160214> <Output location exists C:/views/932_wls/cfm/conformia/pcm/dist/maven/cfmlib/pcmwebapp.war>
[exec] <Jan 25, 2012 9:26:38 AM IST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
[exec]
[exec]
[exec] There are 1 nested errors:
[exec]
[exec] weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: CFMWFAdminStates.jsp:24:4: This tag is not recognized.
[exec] <cfm:resultstabcontainer id ="primaryPartyAdd" title = "PCM_WF_PRIMARY_PARTY" collapsible = "Yes" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" tabData = "#{CFMPrimaryPartyBean.tabs}" width="500"/>
[exec] ^---------------------^
[exec] CFMWFAdminStates.jsp:24:4: This tag is not recognized.
[exec] <cfm:resultstabcontainer id ="primaryPartyAdd" title = "PCM_WF_PRIMARY_PARTY" collapsible = "Yes" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" tabData = "#{CFMPrimaryPartyBean.tabs}" width="500"/>
[exec] ^---------------------^
[exec] CFMWFAdminStates.jsp:41:6: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "backupPartyAdd" title = "PCM_WF_BACKUP_PARTY" collapsible = "Yes" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" width="200"/>
[exec] ^---------------------^
[exec] CFMWFAdminStates.jsp:41:6: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "backupPartyAdd" title = "PCM_WF_BACKUP_PARTY" collapsible = "Yes" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" width="200"/>
[exec] ^---------------------^
[exec] CFMRoleBackupParty.jsp:28:8: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "Yes" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" width="200"/>
[exec]
[exec] ^---------------------^
[exec] CFMRoleBackupParty.jsp:28:8: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "Yes" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" width="200"/>
[exec]
[exec] ^---------------------^
[exec] CFMUserPrimaryParty.jsp:20:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "Yes" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMUserPrimaryParty.jsp:20:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "Yes" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMUserBackupParty.jsp:24:8: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "Yes" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMUserBackupParty.jsp:24:8: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "Yes" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditMacroBackupParty.jsp:35:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditMacroBackupParty.jsp:35:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditMacroBackupParty.jsp:56:6: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr1"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditMacroBackupParty.jsp:56:6: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr1"
[exec]
[exec] ^---------------------^
[exec] CFMWFPrimaryParty.jsp:10:4: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "No" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" height = "400" tabData = "#{CFMPrimaryPartyBean.tabs}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFPrimaryParty.jsp:10:4: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "No" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" height = "400" tabData = "#{CFMPrimaryPartyBean.tabs}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditMacroPrimaryParty.jsp:32:16: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_MacroaddAttr"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditMacroPrimaryParty.jsp:32:16: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_MacroaddAttr"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditMacroPrimaryParty.jsp:51:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_MacroaddAttr1"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditMacroPrimaryParty.jsp:51:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_MacroaddAttr1"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditUserBackupParty.jsp:35:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditUserBackupParty.jsp:35:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditUserBackupParty.jsp:52:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr1" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditUserBackupParty.jsp:52:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr1" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditUserPrimaryParty.jsp:31:18: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditUserPrimaryParty.jsp:31:18: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditUserPrimaryParty.jsp:46:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr1" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditUserPrimaryParty.jsp:46:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_addAttr1" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMRolePrimaryParty.jsp:25:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_RoleaddAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "Yes" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" tabData = "#{CFMPrimaryPartyBean.tabs}" width="500"/>
[exec]
[exec] ^---------------------^
[exec] CFMRolePrimaryParty.jsp:25:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_RoleaddAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "Yes" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" tabData = "#{CFMPrimaryPartyBean.tabs}" width="500"/>
[exec]
[exec] ^---------------------^
[exec] CFMMacroPrimaryParty.jsp:20:11: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_RoleaddAttr"
[exec]
[exec] ^---------------------^
[exec] CFMMacroPrimaryParty.jsp:20:11: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_RoleaddAttr"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditGroupBackupParty.jsp:35:12: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditGroupBackupParty.jsp:35:12: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditGroupBackupParty.jsp:53:6: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr1" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditGroupBackupParty.jsp:53:6: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr1" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMWFEditRolePrimaryParty.jsp:36:18: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_RoleaddAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" width="500"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditRolePrimaryParty.jsp:36:18: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_RoleaddAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" width="500"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditRolePrimaryParty.jsp:55:5: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_RoleaddAttr1" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" width="500"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditRolePrimaryParty.jsp:55:5: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_RoleaddAttr1" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" width="500"/>
[exec]
[exec] ^---------------------^
[exec] CFMGroupBackupParty.jsp:25:11: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "Yes" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMGroupBackupParty.jsp:25:11: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "Yes" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditRoleBackupParty.jsp:39:14: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" width="200"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditRoleBackupParty.jsp:39:14: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" width="200"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditRoleBackupParty.jsp:60:5: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr1" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" width="200"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditRoleBackupParty.jsp:60:5: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr1" title = "PCM_WF_BACKUP_PARTY" collapsible = "no" resultsData = "#{CFMBackupPartyBean.resultsData}" rowSelectionType ="Radio" tabData = "#{CFMBackupPartyBean.tabs}" selectedIds="#{CFMBackupPartyBean.selectedIds}" width="200"/>
[exec]
[exec] ^---------------------^
[exec] CFMMacroBackupParty.jsp:25:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr"
[exec]
[exec] ^---------------------^
[exec] CFMMacroBackupParty.jsp:25:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addBkup_addAttr"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditGroupPrimaryParty.jsp:33:17: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_GroupaddAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" height = "200" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditGroupPrimaryParty.jsp:33:17: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_GroupaddAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" height = "200" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditGroupPrimaryParty.jsp:48:8: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_GroupaddAttr1" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" height = "200" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditGroupPrimaryParty.jsp:48:8: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_GroupaddAttr1" title = "PCM_WF_PRIMARY_PARTY" collapsible = "no" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" height = "200" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}"/>
[exec]
[exec] ^---------------------^
[exec] CFMWFEditTransSetNotifUsers.jsp:43:9: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "PCM_WFADMIN_TRANS_NOTIF_USER_RESULT1" hasFooter="yes"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditTransSetNotifUsers.jsp:43:9: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "PCM_WFADMIN_TRANS_NOTIF_USER_RESULT1" hasFooter="yes"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditTransSetNotifUsers.jsp:59:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id="PCM_WFADMIN_TRANS_NOTIF_USER_RESULT2" hasFooter="yes"
[exec]
[exec] ^---------------------^
[exec] CFMWFEditTransSetNotifUsers.jsp:59:7: This tag is not recognized.
[exec] <cfm:resultstabcontainer id="PCM_WFADMIN_TRANS_NOTIF_USER_RESULT2" hasFooter="yes"
[exec]
[exec] ^---------------------^
[exec] CFMGroupPrimaryParty.jsp:20:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_GroupaddAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "Yes" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" height = "200" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec] CFMGroupPrimaryParty.jsp:20:10: This tag is not recognized.
[exec] <cfm:resultstabcontainer id = "rt_addPrim_GroupaddAttr" title = "PCM_WF_PRIMARY_PARTY" collapsible = "Yes" resultsData = "#{CFMPrimaryPartyBean.resultsData}" rowSelectionType ="Radio" height = "200" tabData = "#{CFMPrimaryPartyBean.tabs}" selectedIds="#{CFMPrimaryPartyBean.selectedIds}" />
[exec]
[exec] ^---------------------^
[exec]
[exec]
[exec] at weblogic.servlet.jsp.jspc20.runBodyInternal(jspc20.java:458)
[exec] at weblogic.servlet.jsp.jspc20.runJspc(jspc20.java:227)
[exec] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:236)
[exec] at weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:376)
[exec] at weblogic.application.compiler.WARModule.compile(WARModule.java:245)
[exec] at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
[exec] at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
[exec] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
[exec] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[exec] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
[exec] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
[exec] at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:29)
[exec] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
[exec] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
[exec] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
[exec] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[exec] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
[exec] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
[exec] at weblogic.application.compiler.Appc.runBody(Appc.java:203)
[exec] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[exec] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[exec] at weblogic.application.compiler.Appc.main(Appc.java:262)
[exec] at weblogic.appc.main(appc.java:14)
[exec]
[exec]
[exec] [ERROR] Result: 1I took the sample integration domain. It is an integration domain. Just to be sure, I tried to extend WLI on top of the existing sample domain, and got a few "the feature already exist" warning dialog.
Wait...
I just tried to build again, this time it worked. I think you are right, the sample domain has some problem, and extending it helped.
Thanks a lot,
Kev -
Recompile with -Xlint:unchecked for details???
hi friends ,
im using jdk-6-windows-i586. and apache-tomcat-5.5.26.
In development phase i got the following error while compiling
BeerExpert.java file. This is my model.
Note: BeerExpert.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
But the class file is created. Is this any type of error or just warning msg.
What is the meaning of this and what to do for it.
Then I recompile the file with javac -Xlint BeerExpert.java or javac -Xlint:unchecked BeerExpert.java
and the warning msg. appered as-
BeerExpert.java:9: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
brands.add("Jack Amber");
error pos::: ^ error or warning position pointed by compiler
4 warnings
my source code is-
package com.example.model;
import java.util.*;
public class BeerExpert {
public List getBrands(String color) {
List brands = new ArrayList();
if(color.equals("amber")) {
brands.add("Jack Amber");
brands.add("Red Moose");
else {
brands.add("Jail Pale Ale");
brands.add("Gout Stout");
return(brands);
Any suggestions what to do? Please..
Thanx in advance.hi i have the same problem but my compiler is different
it says note: stream.java uses or overrides depricated API
recompile with XLINT:deprication for details
@echo off
:def
color 0F
:main
cls
title irans's Perfect Compiler
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo :: Welcome to the ultimate Serverbatch!
echo ::
echo :: Choose one of the options below by entering
echo :: the corrensponding letter and pressing enter.
echo ::
echo :: Need a batch file created?
echo :: http://www.Moparscape.org/smf.
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo :::: Main options:
echo :::: com = Compile your server.
echo :::: run = Run your server.
echo :::: aur = Runs your server with autorestart.
echo :::: bac = Backup your server files.
echo ::::
echo :::: Other options;
echo :::: set = Change settings.
echo :::: loc = Location list (co-ordinates)
echo :::: upd = Updates
echo :::: cmd = Command generator
echo :::: cre = Credits
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo ::
set /p mainc=:: Choice:
if %mainc%==com goto com
if %mainc%==run goto run
if %mainc%==aur goto aur
if %mainc%==bac goto bac
if %mainc%==set goto set
if %mainc%==loc goto loc
if %mainc%==upd goto upd
if %mainc%==cmd goto cmd
if %mainc%==cre goto cre
if %mainc%==COM goto com
if %mainc%==RUN goto run
if %mainc%==AUR goto aur
if %mainc%==BAC goto bac
if %mainc%==SET goto set
if %mainc%==LOC goto loc
if %mainc%==UPD goto upd
if %mainc%==CMD goto cmd
if %mainc%==CRE goto cre
goto main
:com
cls
title Compiling...
echo :: Preparing for compile...
echo :: Auto-setting envriomental variables...
echo ::
goto com2
:com2
title Compiling...
echo :: Scanning for latest JDK version...
echo ::
IF EXIST "%programfiles%\JAVA\JDK1.6.0_10\BIN" (GOTO COM10)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_09\BIN" (GOTO COM09)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_08\BIN" (GOTO COM08)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_07\BIN" (GOTO COM07)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_06\BIN" (GOTO COM06)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_05\BIN" (GOTO COM05)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_04\BIN" (GOTO COM04)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_03\BIN" (GOTO COM03)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_02\BIN" (GOTO COM02)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_01\BIN" (GOTO COM01)
goto comerrorxxx
:COM10
echo :: Found JDK 1.6.0_10
SET CLASSPATH=Files\Java\jdk1.6.0_10\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_10\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM09
echo :: Found JDK 1.6.0_09
SET CLASSPATH=Files\Java\jdk1.6.0_09\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_09\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM08
echo :: Found JDK 1.6.0_08
SET CLASSPATH=Files\Java\jdk1.6.0_08\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_08\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM07
echo :: Found JDK 1.6.0_07
SET CLASSPATH=Files\Java\jdk1.6.0_07\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_07\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM06
echo :: Found JDK 1.6.0_06
SET CLASSPATH=Files\Java\jdk1.6.0_06\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_06\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM05
echo :: Found JDK 1.6.0_05
SET CLASSPATH=Files\Java\jdk1.6.0_05\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_05\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM04
echo :: Found JDK 1.6.0_04
SET CLASSPATH=Files\Java\jdk1.6.0_04\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_04\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM03
echo :: Found JDK 1.6.0_03
SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM2
echo :: Found JDK 1.6.0_02
SET CLASSPATH=Files\Java\jdk1.6.0_02\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_02\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COM01
echo :: Found JDK 1.6.0_01
SET CLASSPATH=Files\Java\jdk1.6.0_01\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_01\bin
echo :: Results:
javac *.java
echo :: Done!
pause
goto main
:COMERRORXXX
echo :: No version of JDK 1.6 was detected.wtf impossible
pause
goto main
:run
cls
title Running Server...
echo :: Port:
echo :: 43594
IF EXIST "%programfiles%\JAVA\JDK1.6.0_10\BIN" (GOTO RUN10)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_09\BIN" (GOTO RUN09)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_08\BIN" (GOTO RUN08)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_07\BIN" (GOTO RUN07)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_06\BIN" (GOTO RUN06)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_05\BIN" (GOTO RUN05)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_04\BIN" (GOTO RUN04)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_03\BIN" (GOTO RUN03)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_02\BIN" (GOTO RUN02)
IF EXIST "%programfiles%\JAVA\JDK1.6.0_01\BIN" (GOTO RUN01)
:RUN10
echo :: Running using JDK 1.6.0_10...
SET CLASSPATH=Files\Java\jdk1.6.0_10\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_10\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN09
echo :: Running using JDK 1.6.0_09...
SET CLASSPATH=Files\Java\jdk1.6.0_09\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_09\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN08
echo :: Running using JDK 1.6.0_08...
SET CLASSPATH=Files\Java\jdk1.6.0_08\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_08\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN07
echo :: Running using JDK 1.6.0_07...
SET CLASSPATH=Files\Java\jdk1.6.0_07\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_07\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN06
echo :: Running using JDK 1.6.0_06...
SET CLASSPATH=Files\Java\jdk1.6.0_06\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_06\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN05
echo :: Running using JDK 1.6.0_05...
SET CLASSPATH=Files\Java\jdk1.6.0_05\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_05\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN04
echo :: Running using JDK 1.6.0_04...
SET CLASSPATH=Files\Java\jdk1.6.0_04\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_04\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN03
echo :: Running using JDK 1.6.0_03...
SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN02
echo :: Running using JDK 1.6.0_02...
SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed!
pause
goto main
:RUN01
echo :: Running using JDK 1.6.0_01...
SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
echo :: Failed! Need JDK 1.6.0_xx
pause
cls
goto main
:bac
:backup
cls
title Backing up files...
echo :: Backing up files...
if not exist Backup mkdir Backup
if not exist Backup\characters mkdir Backup\characters
if not exist Backup\connectedFrom mkdir Backup\connectedFrom
if not exist Backup\data mkdir Backup\data
if not exist Backup\flagged mkdir Backup\flagged
if not exist Backup\logs mkdir Backup\logs
if not exist Backup\moreinfo mkdir Backup\moreinfo
if not exist Backup\savedGames mkdir Backup\savedGames
Echo Starting Backup Copy
copy /V /Y /A *.txt .\Backup\
copy /V /Y /A *.java .\Backup\
copy /V /Y /A *.class .\Backup\
copy /V /Y /A *.cfg .\Backup\
copy /V /Y /A *.bat .\Backup\
copy /V /Y /A bans .\Backup\bans
copy /V /Y /A characters .\Backup\characters
copy /V /Y /A characters .\Backup\characters
copy /V /Y /A connectedFrom .\Backup\connectedFrom
copy /V /Y /A data .\Backup\data
copy /V /Y /A flagged .\Backup\flagged
copy /V /Y /A logs .\Backup\logs
copy /V /Y /A moreinfo .\Backup\moreinfo
copy /V /Y /A savedGames .\Backup\savedGames
echo :: Done.
pause
cls
goto main
:set
cls
echo :: Enter one of the following to change background colour.
echo :: B0 = Black
echo :: B1 = Blue
echo :: B2 = Green
echo :: B3 = Cyan
echo :: B4 = Red
echo :: B5 = Purple
echo :: B6 = Yellow
echo :: B7 = White
echo.
echo :: Enter one of the following to change text colour.
echo :: T0 = Black
echo :: T1 = Blue
echo :: T2 = Green
echo :: T3 = Cyan
echo :: T4 = Red
echo :: T5 = Purple
echo :: T6 = Yellow
echo :: T7 = White
set /p s=:: Choice:
if %s%== B0 (set b=0)
if %s%== B1 (set b=1)
if %s%== B2 (set b=2)
if %s%== B3 (set b=3)
if %s%== B4 (set b=4)
if %s%== B5 (set b=5)
if %s%== B6 (set b=6)
if %s%== B7 (set b=F)
if %s%== T0 (set t=0)
if %s%== T1 (set t=1)
if %s%== T2 (set t=2)
if %s%== T3 (set t=3)
if %s%== T4 (set t=4)
if %s%== T5 (set t=5)
if %s%== T6 (set t=6)
if %s%== T7 (set t=F)
color %b%%t%
pause
cls
goto main
:loc
cls
echo :: Below is a list of locations with their coordinates.
echo ::
echo :: Varrock - 3210 3424
echo :: Falador - 2964 3378
echo :: Lumbridge - 3222 3218
echo :: Camelot - 2757 3477
echo :: East Ardougne 2662 3305
echo :: West Ardougne 2529 3307
echo :: Al Kharid 3293 3174
echo :: Khalphite Lair 3226 3107
echo :: Yannille 2606 3093
echo :: Tutorial Island 3094 3107
echo :: Barbarian Village 3082 3420
echo :: Entrana 2834 3335
echo :: Heroes Guild 2902 3510
echo :: Rangers Guild 2658 3439
echo :: Catherby 2813 3447
echo :: Seers Village 2708 3492
echo :: Fishing Guild 2603 3414
echo :: Isafdar 2241 3238
pause
cls
goto main
:upd
cls
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo :: Latest updates:
echo ::
echo :: 1) Added Location list.
echo :: 2) Fixed backup commands.
echo :: 3) Added settings option.
echo :: 4) Fixed backup to cover more file types.
echo :: 5) Added autorestarter. This was incredibly difficult for me to do.
echo :: 6) Added command generator.
echo :: 7) Auto-sets enviromental variables when compiling.
echo :: 8) Released On Mopar Forums
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
pause
cls
goto main
:cmd
:Star
Set /p CmdName=Command Input?
Set /p RUSure=Are you sure you want the commands input: %CmdName%(yes,no)?
If %RUSure%==no GOTO Star
If not Exist CommandsFolder MD Commands Folder
Echo else if(command.equalsignorecase("%CmdName%")) >> ".\Commands\%CmdName% Command.txt"
Echo { >> ".\Commands\%CmdName% Command.txt"
cls
set /p AY=addItem(yes,no)?
If %AY%==YES Goto addItem
If %AY%==yes Goto addItem
If %AY%==no Goto endCode
If %AY%==NO Goto endCode
:addItem
cls
set /p ID=ItemID?
cls
set /p Amount=Amount Of that Item?
cls
echo addItem(%ID%,%Amount%); >> ".\Commands\%CmdName% Command.txt"
Set /P AT=Add item, add tele or finish command.(AI,T,End)
If %AT%==ai GOTO addItem
If %AT%==Ai GOTO addItem
If %AT%==AI GOTO addItem
If %AT%==aI GOTO addItem
If %AT%==T GOTO Tele
If %AT%==t GOTO Tele
If %AT%==end GOTO endCode
If %AT%==END GOTO endCode
If %AT%==EnD GOTO endCode
If %AT%==eNd GOTO endCode
If %AT%==ENd GOTO endCode
If %AT%==enD GOTO endCode
if %AT%==End Goto endcode
if %type%==* goto error
echo.
goto error
:error
cls
echo Commands invalid. Only use commands from the menu.
pause
goto menu
:endCode
cls
Echo } >> ".\Commands\%CmdName% Command.txt"
Set /p Again=Make Another (yes, No)?
If %Again%==yes GOTO Star
If %Again%==no goto fin
If %Again%==YES GOTO Star
If %Again%==NO goto fin
:Tele
cls
Set /P X=XCoord Tele?
Set /P Y=YCoord Tele?
Echo teleportToX = %X% >> ".\Commands\%CmdName% Command.txt"
Echo teleportToY = %Y% >> ".\Commands\%CmdName% Command.txt"
Set /P AT=addItem Or Another Tele(not Used In Same Command Usually(AI,T,End)
If %AT%==ai GOTO addItem
If %AT%==Ai GOTO addItem
If %AT%==AI GOTO addItem
If %AT%==aI GOTO addItem
If %AT%==T GOTO Tele
If %AT%==t GOTO Tele
If %AT%==end GOTO endCode
If %AT%==END GOTO endCode
If %AT%==EnD GOTO endCode
If %AT%==eNd GOTO endCode
If %AT%==ENd GOTO endCode
If %AT%==enD GOTO endCode
if %AT%==End Goto endcode
:fin
echo Command creation complete. Find it in the commands folder.
pause
cls
goto main
:aur
cls
echo :: Have you already set up your autorestarter? (Y/N)
set /p ans=:: Answer:
if %ans%==y goto ansyes
if %ans%==n goto ansno
goto main
:ansyes
cls
call autorestart.bat
echo Not Found!
pause
goto main
:ansno
cls
echo :: How long between auto restarts?
set /p hlb=:: (10min, 12min, 14min, 16min, 18min, 20min):
if %hlb%==10min goto min10
if %hlb%==12min goto min12
if %hlb%==14min goto min14
if %hlb%==16min goto min16
if %hlb%==18min goto min18
if %hlb%==20min goto min20
:min10
del ProcessKiller.bat
del Autorestart.bat
del Runner.bat
echo :start >> ProcessKiller.bat
echo PING 1.1.1.1 -n 1 -w 600000 >> ProcessKiller.bat
echo tskill java >> ProcessKiller.bat
echo start call runner >> ProcessKiller.bat
echo goto start >> ProcessKiller.bat
echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
echo exit >> Runner.bat
echo @echo off >> Autorestart.bat
echo :start >> Autorestart.bat
echo Start call "Runner.bat" >> Autorestart.bat
echo call "ProcessKiller.bat" >> Autorestart.bat
echo pause >> Autorestart.bat
echo goto start >> Autorestart.bat
goto donexd
:min12
del ProcessKiller.bat
del Autorestart.bat
del Runner.bat
echo :start >> ProcessKiller.bat
echo PING 1.1.1.1 -n 1 -w 720000 >> ProcessKiller.bat
echo tskill java >> ProcessKiller.bat
echo start call runner >> ProcessKiller.bat
echo goto start >> ProcessKiller.bat
echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
echo exit >> Runner.bat
echo @echo off >> Autorestart.bat
echo :start >> Autorestart.bat
echo Start call "Runner.bat" >> Autorestart.bat
echo call "ProcessKiller.bat" >> Autorestart.bat
echo pause >> Autorestart.bat
echo goto start >> Autorestart.bat
goto donexd
:min14
del ProcessKiller.bat
del Autorestart.bat
del Runner.bat
echo :start >> ProcessKiller.bat
echo PING 1.1.1.1 -n 1 -w 840000 >> ProcessKiller.bat
echo tskill java >> ProcessKiller.bat
echo start call runner >> ProcessKiller.bat
echo goto start >> ProcessKiller.bat
echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
echo exit >> Runner.bat
echo @echo off >> Autorestart.bat
echo :start >> Autorestart.bat
echo Start call "Runner.bat" >> Autorestart.bat
echo call "ProcessKiller.bat" >> Autorestart.bat
echo pause >> Autorestart.bat
echo goto start >> Autorestart.bat
goto donexd
:min16
del ProcessKiller.bat
del Autorestart.bat
del Runner.bat
echo :start >> ProcessKiller.bat
echo PING 1.1.1.1 -n 1 -w 960000 >> ProcessKiller.bat
echo tskill java >> ProcessKiller.bat
echo start call runner >> ProcessKiller.bat
echo goto start >> ProcessKiller.bat
echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
echo exit >> Runner.bat
echo @echo off >> Autorestart.bat
echo :start >> Autorestart.bat
echo Start call "Runner.bat" >> Autorestart.bat
echo call "ProcessKiller.bat" >> Autorestart.bat
echo pause >> Autorestart.bat
echo goto start >> Autorestart.bat
goto donexd
:min18
del ProcessKiller.bat
del Autorestart.bat
del Runner.bat
echo :start >> ProcessKiller.bat
echo PING 1.1.1.1 -n 1 -w 1080000 >> ProcessKiller.bat
echo tskill java >> ProcessKiller.bat
echo start call runner >> ProcessKiller.bat
echo goto start >> ProcessKiller.bat
echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
echo exit >> Runner.bat
echo @echo off >> Autorestart.bat
echo :start >> Autorestart.bat
echo Start call "Runner.bat" >> Autorestart.bat
echo call "ProcessKiller.bat" >> Autorestart.bat
echo pause >> Autorestart.bat
echo goto start >> Autorestart.bat
goto donexd
:min20
del ProcessKiller.bat
del Autorestart.bat
del Runner.bat
echo :start >> ProcessKiller.bat
echo PING 1.1.1.1 -n 1 -w 1200000 >> ProcessKiller.bat
echo tskill java >> ProcessKiller.bat
echo start call runner >> ProcessKiller.bat
echo goto start >> ProcessKiller.bat
echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
echo exit >> Runner.bat
echo @echo off >> Autorestart.bat
echo :start >> Autorestart.bat
echo Start call "Runner.bat" >> Autorestart.bat
echo call "ProcessKiller.bat" >> Autorestart.bat
echo pause >> Autorestart.bat
echo goto start >> Autorestart.bat
goto donexd
:donexd
echo :: Autorestart configuration is complete. Choose 'y' at the menu.
pause
cls
goto aur
goto main
:cre
cls
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo :: Thanks you for using irans's ultimate Serverbatch!
echo ::
echo :: Thanks to:
echo :: iran4life
echo ::
echo :: And you, if you have decided to use this
echo :: instead of a different serverbatch (compiler).
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
pause
cls
goto main
for some reason when i compile it says note: stream.java uses or overrides depricated API
recompile with XLINT:deprication for details
is there any errors ?
help plz ive been trying for weeks and i went to ur link and still couldnt find...
Edited by: imascape on Nov 5, 2008 8:18 PM -
Compliation Error: Recompile with -Xlint:unchecked for details
I am new to Java and am working through Sams Teach Yourself Java2 book. One of the examples gave me a compilation error. The problem code follows:
C:\Java_Work\com\ramyam\ecommerce>java c Storefront.java
Note: Storefront.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
package com.ramyam.ecommerce;
import java.util.*;
public class Storefront {
private LinkedList catalog = new LinkedList();
public void addItem(String id, String name, String price, String quant) {
Item it = new Item(id, name, price, quant);
catalog.add(it);
public Item getItem(int i) {
return (Item)catalog.get(i);
public int getSize() {
return catalog.size();
public void sort() {
Collections.sort(catalog);
}I think it has something to do with the collections class being outdated. Does anyone have any idea how to fix this?
Thanks in advance,
georginaThe book probably was published before Java had Generics. You can do as the error message says and recompile with the Xlint:unchecked option. Basically, you need to specify the type of objects you are putting into the LinkedList, something like private LinkedList<Item> catalog = new LinkedList<Item>();This may cause you other errors.........
-
How to recompile with zinc?
Hello, i wanted to change the name of the xml file that it saved to so i asked on the forum. A person gave me the editted script below however they also told me that in order for this to work i must recompile it with zinc. I have never worked with zinc before can someone please explain to me how to that, i have zinc 3.0
Thanks
/*ALL THE BUTTONS BELOW ARE MARKED FOR EDITABLE AND DO NOT EDIT ,ALTHOUGH IF YOU KNOW WHAT YOUR DOING
THEN YOU CAN ACTUALY EDIT ANYTHING YOU WANT TO BUT FOR THIS APP TO WORK PROPERLY ONLY EDIT THE APPROPRIATE
ENTRIES..ONCE YOU HAVE MADE YOUR CHANGES COPY AND PASTE THIS WHOLE PAGE OF SCRIPT INTO
THE FIRST FRAME OF THE TIMELINE LET IT OVER RIGHT THE SCRIPT THATS ALREADY THERE.
Button text labels for XML PLAYER*/
///SIDE MENUE BUTTONS\\\
btn1.buttText.buttonText.text ="DOWNLOAD FILES";///DO NOT EDIT
btn2.buttText.buttonText.text ="SYSTEM VOLUME";///DO NOT EDIT
btn3.buttText.buttonText.text ="EDIT XML PLAYLIST";///DO NOT EDIT
btn4.buttText.buttonText.text ="BURN CD";///DO NOT EDIT
btn5.buttText.buttonText.text ="CREATE FOLDER";///DO NOT EDIT
btn6.buttText.buttonText.text ="DELETE FOLDER";///DO NOT EDIT
btn7.buttText.buttonText.text ="OPEN CDROM";///DO NOT EDIT
btn8.buttText.buttonText.text ="OPEN DVDROM";///DO NOT EDIT
btn9.buttText.buttonText.text ="FTP CLIENT";///DO NOT EDIT
btn14.buttText.buttonText.text ="VIEW PLAYLIST";///DO NOT EDIT
btn23.buttText.buttonText.text ="INFO";///DO NOT EDIT
btn25.buttText.buttonText.text ="HELP";///DO NOT EDIT
btn26.buttText.buttonText.text ="MDM HELP";///DO NOT EDIT
///BOTTOM BTNS
btn19.buttText.buttonText.text ="OPEN CD TRAY";///DO NOT EDIT
btn20.buttText.buttonText.text ="CLOSE CD TRAY";///DO NOT EDIT
btn21.buttText.buttonText.text ="OPEN DVD TRAY";///DO NOT EDIT
btn22.buttText.buttonText.text ="CLOSE DVD TRAY";///DO NOT EDIT
///THESE ARE FUNCTIONS THAT CAN BE EDITED BUT ONLY THE ONES MARKED "YOU CAN EDIT THIS PATH" are safe to change
///MY DOWNLOAD FILES
btn1.onRelease = function() {
mdm.Dialogs.BrowseFile.filterList = "MP3 Files|*.mp3";
mdm.System.exec("E:\\My Music\\"); ///Path to download file //YOU CAN EDIT THIS PATH
////SYSTEM VOLUME///DO NOT EDIT
btn2.onRelease = function() {
mdm.System.exec("sndvol32.exe"); ///System volume .exe
////EDIT XML PLAYLIST///DO NOT EDIT
btn3.onRelease = function() {
mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\audiolist2.xml "); ///xml list
////BURN CD//YOU CAN EDIT THIS PATH
btn4.onRelease = function() { ///Add your path here to your burning software nero for example
mdm.System.exec(mdm.System.Paths.programFiles+"Nero\\nero.exe");
////CREATE FOLDER///DO NOT EDIT
btn5.onRelease = function() {
mdm.FileSystem.makeFolderUnicode("C:\\Program Files\\Mgamerz\\Burn"); //Creates a work folder for burning mp3s
////DELETE FOLDER///DO NOT EDIT
btn6.onRelease = function() { ///Deletes work folder if you want to delete it
mdm.FileSystem.deleteFolder("C:\\Program Files\\Mgamerz\\Burn","ask", "Are you sure");
//// OPEN CDROM//YOU CAN EDIT THIS PATH
btn7.onRelease = function() { ///Opens up cdrom drive change the letter to match your pc
mdm.System.exec("I:\\");
////OPEN DVDROM//YOU CAN EDIT THIS PATH
btn8.onRelease = function() {////Opens up dvdrom drive change the letter to match your pc
mdm.System.exec("I:\\");
////FTP CLIENT//YOU CAN EDIT THIS PATH
btn9.onRelease = function() {///File path to your ftp software (here I use front page )
mdm.System.exec(mdm.System.Paths.programFiles+"Microsoft Office\\Office10\\Shortcut Bar\\Office\\Microsoft FrontPage");
///Top header buttons
////C:DRIVE///DO NOT EDIT
btn10.onRelease = function() {////Opens up c:drive for browsing
mdm.System.exec(mdm.System.Paths.programFiles+"\\");
/*btn11.onRelease = function() { ////Opens up D:drive for browsing
mdm.System.exec("D:\\"); //YOU CAN EDIT THIS PATH
////MY DOCUMENTS///DO NOT EDIT
btn12.onRelease = function() { ///Opens up my documents for browsing
mdm.Dialogs.BrowseFile.filterList = "MP3 Files|*.mp3";
mdm.Dialogs.BrowseFile.show("My Documents\\");
////MP3 FOLDER///DO NOT EDIT
btn13.onRelease = function() {//main directory for mp3 files
mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\my_mp3s\\");
////VIEW PLAYLIST///DO NOT EDIT
btn14.onRelease = function() {///View playlist as a text file
mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\my_mp3s\\mp3.t xt");
////UPDATE XML FILE///DO NOT EDIT
btn15.onRelease = function() {///Creates xml playlist once new mp3s have been added
mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\mymusic.xml ");
////MINIMIZE BUTTON
/*btn16.onRelease = function() { //Minimizes the application
mdm.Application.minimize() ///DO NOT EDIT
////CLOSE BUTTON
/*btn17.onRelease = function() { ///Closes application
mdm.Application.exit("ask","Are you sure you want to Exit?") ///DO NOT EDIT
///SCREEN CAPTURE DEVICE///DO NOT EDIT
btn18.onRelease = function() {///Screen captue sofdtware
mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\apps\\Capture Screen Studio\\css.exe");
////OPEN CDROM TRAY//YOU CAN EDIT THIS PATH
btn19.onRelease = function(){
mdm.System.openCDTray("I");
////CLOSE CDROM TRAY//YOU CAN EDIT THIS PATH
btn20.onRelease = function(){//Closes cdrom tray
mdm.System.closeCDTray("I");
////OPEN DVDROM TRAY//YOU CAN EDIT THIS PATH
btn21.onRelease = function() {//Opens dvdrom
mdm.System.openCDTray("H");
////CLOSE DVDROM TRAY//YOU CAN EDIT THIS PATH
btn22.onRelease = function() {//Closes dvdrom tray
mdm.System.closeCDTray("H");
/*btn23.onRelease = function() {//DO NOT EDIT
nextFrame();
////HELP//DO NOT EDIT
btn25.onRelease = function() {//Closes dvdrom tray
mdm.System.exec(mdm.System.Paths.programFiles+"Mgamerz\\help.exe");
////MDM HELP//DO NOT EDIT
btn26.onRelease = function() {//Closes dvdrom tray
mdm.System.exec(mdm.System.Paths.programFiles+"MDM 2.5 help file\\MDM 2.5 UserManual.chm");zinc builder say i need to rebuild it because it doesnt support files created in earlier versions of zinc how do i do that?
-
Old app recompiled with f77 failed but succeed with g77
hello all,
i need to recompile an old app written in fortran77, but it fails at the execution:
Starting nonmem execution ...
Note: IEEE floating-point exception flags raised:
Inexact; Underflow; Invalid Operation;
See the Numerical Computation Guide, ieee_flags(3M) after generating a core, dbx tells me:
t@1 (l@1) program terminated by signal FPE (invalid floating point operation)
Current function is cels
103 IF (ICAT.NE.0.AND.CTLW.GE.CTUP) THEN
(dbx) where
current thread: t@1
=>[1] cels(cnt = 0.0, p1 = ARRAY, p2 = ARRAY, ier1 = 0, ier2 = 0), line 103 in "CELS.f"
[2] ncontr(cnt = 0.0, ier1 = 0, ier2 = 0, l2r = 0), line 329 in "NCONTR.f"
[3] obj(o = -NaN.0), line 1636 in "OBJ.f"
[4] zxmin1(funct = 0x80e8c10, nsig = 3, maxfn = 450, jopt = 0, w = ARRAY, opint = 5), line 222 in "ZXMIN1.f"
[5] estim(ier = 0), line 156 in "ESTIM.f"
[6] MAIN(), line 45 in "NONMEM.f"and:
(dbx) print ICAT
icat = 3
(dbx) print CTLW
ctlw = NaN
(dbx) print CTUP
ctup = -NaN.0what i don't understand is that the same sources compiled with g77 (2.95) works without problems. That is g77 is able to set ctlw and ctup correctly!?
Is there a flag in f77 to mimic the g77 behaviour?
here are the flags i'm using:
f77 -g -C -fnonstdthanks in advance for help,
gerard
Edited by: mister_g on 24 juin 2009 09:27it seems that the problem is related to COMMON variables, as they are strangely declared, but as i said before, it's a "commercial" app, even if this is the responsibility of the customer to recompile it.
What we observed is that, before entering into a function, a variable decalred in a COMMON has a correct value, but in the function, it contains NaN. In the earlier releases, according to the official docs, developers used to use sun compiler, so my guess is that something has changed in Sun f77 since the old times?
i gave a try with old workshop WS6.u2, the program failed too, but i'm unable to generate a core or to tell the debugger to stop where the error occured:
(/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) catch
HUP INT QUIT ILL TRAP ABRT EMT FPE BUS SEGV SYS PIPE ALRM TERM USR1 USR2 CLD PWR WINCH URG POLL STOP TSTP CONT TTIN TTOU VTALRM PROF XCPU XFSZ WAITING LWP FREEZE THAW CANCEL LOST XRES 39 40 RTMIN RTMIN+1 RTMIN+2 RTMIN+3 RTMIN+4 RTMIN+5 RTMIN+6 RTMIN+7
(/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) run < FCON > REPORT5
Running: nonmem < FCON > REPORT5
(process id 25314)
Reading libc_psr.so.1
Note: IEEE floating-point exception traps enabled:
overflow; division by zero; invalid operation;
Nonstandard floating-point mode enabled
See the Numerical Computation Guide, ieee_handler(3M), ieee_sun(3M)
execution completed, exit code is 0
(/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) where
dbx: program is not active
(/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx)Thanks in advance for help,
gerard
Maybe you are looking for
-
Error updating a CLOB XML fragment
Hi, I have an xml schema that contains an element of type xs:anyType that has been mapped to Oracle as CLOB. Now I have the needs to update this value but I was not able to do it. The code that does the update is the following: public void updateXML(
-
Contacted Proquest and they said to contact Adobe. Recently installed CS5, so I now have newer Acrobat version from before. This newer version isn't playing well. Can anyone help? This is my original plea to Proquest: Description: Recently had Adobe
-
Finder not working properly..
Hello, Since a week or two, my Finder is really bugging a lot. I'll give you a few examples: When I try to open my external HD in Finder, it looks like it's empty, after a few tries and a few minutes, all the folders that are on the HD show up. If I
-
Clean install to 10.6 OEM from 10.5.8
I just ordered snow leopard. I did not realize, however, that I was ordering an OEM version. (didn't research it until after purchase either) I am currently running 10.5.8 and want to do a clean install with 10.6 OEM. Am I going to run into any probl
-
How to fix libintl-8-vc100.dll missing error.
I get the following error twice every time I open a PDF (or Acrobat). If I hit ok I get into the PDF or into Acrobat itself. The error is "The program can't start because libintl-8-vc100.dll is missing from your computer. Try reinstalling the prog