Compiling problem for java.
Hi, all,
I am new user of Java SDK standard edition. I have installed the J2sdk1_3_1_02 (standard edtion) under a certain directory on Solaris system. I also set the JAVA_HOME to the ../j2sdk1_3_1_02, and CLASSPATH to ../j2sdk1_3_1_02/lib/tools.jar.
I finished a simple example of "Helloworld.java", which can be compiled successfully. But when I use "java Helloworld" to run it, the erro message appeas as follows:
Unable to initialize threads: cannot find class java/lang/Thread
I need your people 's help, thanks a lot.
Kevin
Dear Cmouttet,
Thank you very much for the help. I followed your suggestion to change my setting about runtime environment in my classpath.
But the error still appears:
SIGSEGV 11* segmentation violation
si_signo [11]: SIGSEGV 11* segmentation violation
si_errno [0]: Error 0
si_code [1]: SEGV_ACCERR [addr: 0x0]
Full thread dump:
Segmentation Fault(coredump)
The following is that simple java program of Helloworld:
class Helloworld
public static void main(String args[])
System.out.println("Hello world, this xxd!");
Could you tell me how to do in next step to finish my fist trial of java technology?
Thanks for any reply!
kevin
Similar Messages
-
Jpcap locating and code compilation problem for packet sniffing
To my previous thread "How to capture and Read Packets", I've got reply to use jpcap. Yes I have tried to use this but the when I tried to compile the code it gives a lot of error, surely because javac cant find the jpcap library. I have download the library which is in installation form and when I installed library the jpcap, instead of installing in lib of JRE or JDK it installed in system32 of window file system and hence the compiler unable to locate this file kindly tell me how can I tackle this problem. i.e. how can and where should I place jpcap.dll file
Regards,
Danish KamranHi
Thanks for the response.
I would like to know if it is possible to capture all the data that is returned from a running port in a server. For eg. if oracle Apps Instance is running on port 1615, will I be able to capture all the data (before sending it to the DB server, through JpCap or any other java program) that, that form is sending to the Oracke DB Server?
What I need to to develop is an intermediate (middleware) Database Simulator using java for an oracle application. I need to capture the data that oracle application is sending into this Simulator and then send it to the Oracle DB server, after performing some operations in the simulator. Is this possible through java socket programming?
Thanks in advance.
Revathi -
Installation problem for Java EE 5 SDK Update 2
Hi ,
I have jdk1.5.0_12 (J2SE) installed on my Windows XP. Now i am trying to install J2EE on my machine.I tried to install it twice but it comes to a halt after completing 45% at the same jar file. Following is the link which shows it comes to a halt.
http://img141.imageshack.us/my.php?image=j2eeinstallhangupav8.png
Also I wanted to know if I uninstall the J2SE and then install only J2EE will that be fine.Because I believe J2EE is a superset of J2SE ?
Thanks in advance.For the difference between Java EE and Java SE read here:
http://java.sun.com/javaee/5/docs/firstcup/doc/p3.html
For the installation problem, I don�t know how to help you... maybe here you can find some ideas:
http://forum.java.sun.com/thread.jspa?threadID=738559
Andrea -
A small Java Problem for java Experts
Hi Guys...
I have a small problem with my program...
Tha program I am using consist of several frames where one invokes the other in row.
These are the classes I am using:
the FIRST class://THIS CLASS IS NOT COMPLETE
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
* LabelDemo.java is a 1.4 application that needs one other file:
* images/middle.gif
public class CSVloader extends JPanel implements ActionListener {
ImageIcon icon ;
JLabel label;
JButton theButton1;
JButton saveButton;
JButton displayButton;
JButton displayStyleButton;
JFileChooser fc;
final boolean shouldFill = true;
final boolean shouldWeightX = true;
public CSVloader() {
GridBagLayout gridbag = new GridBagLayout();
GridBagConstraints c = new GridBagConstraints();
setLayout(gridbag);
if (shouldFill) {
//natural height, maximum width
c.fill = GridBagConstraints.HORIZONTAL;
theButton1 = new JButton("Choose source File");
theButton1.addActionListener(this);
if (shouldWeightX) {
c.weightx = 0.5;
c.gridx = 0;
c.gridy = 0;
gridbag.setConstraints(theButton1, c);
add(theButton1);
displayStyleButton = new JButton("CSV Display style");
displayStyleButton.addActionListener(this);
c.gridx = 0;
c.gridy = 2;
gridbag.setConstraints(displayStyleButton, c);
add(displayStyleButton);
displayButton = new JButton("Display");
displayButton.addActionListener(this);
c.gridx = 1;
c.gridy = 0;
gridbag.setConstraints(displayButton, c);
add(displayButton);
saveButton = new JButton("Save");
saveButton.addActionListener(this);
c.gridx = 0;
c.gridy = 1;
gridbag.setConstraints(saveButton, c);
add(saveButton);
icon = new ImageIcon("c:/applets/CSVlogo.gif");
//Create the first label.
label = new JLabel(icon);
c.ipady = 45; //make this component tall
c.weightx = 0.0;
c.gridwidth = 1;
c.gridx = 1;
c.gridy = 1;
gridbag.setConstraints(label, c);
add(label);
fc = new JFileChooser();
public Dimension getDimension(int hight, int width) {
Dimension theDimension = new Dimension(hight,width);
return theDimension;
public void actionPerformed(ActionEvent e) {
//Handle open button action.
if (e.getSource() == theButton1) {
int returnVal = fc.showOpenDialog(CSVloader.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
//This is where a real application would open the file.
//Handle save button action.
} else
if (e.getSource() == displayButton) {
try {
Runtime.getRuntime().exec("cmd /c start " + "c:\\applets\\displayData.html");
catch(IOException io)
System.err.println("Caught IOException: " +
io.getMessage());
}else
if (e.getSource() == displayStyleButton)
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("Display Style");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
DisplayStyle newContentPane = new DisplayStyle();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
else
if (e.getSource() == saveButton) {
int returnVal = fc.showOpenDialog(CSVloader.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File saveFile = fc.getSelectedFile();
//This is where a real application would open the file.
public static void main(String[] args) {
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("LabelDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
CSVloader newContentPane = new CSVloader();
newContentPane.setBackground(Color.WHITE);
newContentPane.setOpaque(true);
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
// Runtime.getRuntime().exec("cmd /c start " + "....\\docs\\index.html");
this is the SECOND class:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DisplayStyle extends JPanel implements ActionListener{
public static final int FIRST_OPTION = 0;
public static final int SECOND_OPTION = 1;
public static final int THIRD_OPTION = 2;
public static final int THE_BUTTON_OPTION =3;
public static final int ERROR = -1;
public int selectedOption = ERROR;
static String table = "Table";
static String tableNoBorders = "Table without Borders";
static String highlightedTable = "Highlighted Table without Borders";
public JRadioButton theTable;
public JRadioButton theTable2;
public JRadioButton theTable3;
public JButton theButton;
public String theName;
public DisplayStyle ()
theTable = new JRadioButton(table);
theTable.setActionCommand(""+ FIRST_OPTION);
theTable.addActionListener(this);
theTable.setMnemonic(KeyEvent.VK_B);
theTable.setSelected(true);
theTable2 = new JRadioButton(tableNoBorders);
theTable2.setActionCommand(""+ SECOND_OPTION);
theTable2.addActionListener(this);
theTable2.setMnemonic(KeyEvent.VK_B);
theTable3 = new JRadioButton(highlightedTable);
theTable3.setActionCommand(""+ THIRD_OPTION);
theTable3.addActionListener(this);
theTable3.setMnemonic(KeyEvent.VK_B);
theButton = new JButton("OK");
theButton.setActionCommand(""+ THE_BUTTON_OPTION);
theButton.addActionListener(this);
ButtonGroup group = new ButtonGroup();
group.add(theTable);
group.add(theTable2);
group.add(theTable3);
JLabel theLabel = new JLabel("Choose the style of Display");
JPanel radioPanel = new JPanel(new GridLayout(0, 1));
radioPanel.add(theLabel);
radioPanel.add(theTable);
radioPanel.add(theTable2);
radioPanel.add(theTable3);
radioPanel.add(theButton);
add(radioPanel, BorderLayout.LINE_START);
public void actionPerformed (ActionEvent e) {
if(e.getSource() == theButton)
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame1 = new JFrame("The Format");
frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Formats newFormat = new Formats();
newFormat.setOpaque(true); //content panes must be opaque
frame1.setContentPane(newFormat);
//Display the window.
frame1.pack();
frame1.setVisible(true);
selectedOption = Integer.parseInt(e.getActionCommand().trim());
public DisplayStyle getInstance(){
return this;
this is the THIRD class:
mport java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Formats extends JPanel implements ActionListener{
public static final int FIRST_OPTION = 0;
public static final int SECOND_OPTION = 1;
public static final int THIRD_OPTION = 2;
public static final int FOURTH_OPTION = 4;
public static final int THE_BUTTON_OPTION =3;
public static final int ERROR = -1;
public int selectedOption = ERROR;
static String standardFormat = "Date first";
static String timeFirstFormat = "Time First";
static String typeFirstFormat = "Type of call first";
static String extFirstFormat = "Extension first";
public JButton theButton;
public JRadioButton theStandardButton1 ;
public JRadioButton theTimeButton;
public JRadioButton theTypeButton;
public JRadioButton theExtButton ;
public Formats()
theStandardButton1 = new JRadioButton(standardFormat);
theStandardButton1.setMnemonic(KeyEvent.VK_B);
theStandardButton1.setSelected(true);
theTimeButton = new JRadioButton(timeFirstFormat);
theTimeButton.setMnemonic(KeyEvent.VK_B);
theTypeButton = new JRadioButton(typeFirstFormat);
theTypeButton .setMnemonic(KeyEvent.VK_B);
theExtButton = new JRadioButton(extFirstFormat);
theExtButton.setMnemonic(KeyEvent.VK_B);
ButtonGroup group = new ButtonGroup();
group.add(theStandardButton1);
group.add(theTimeButton);
group.add(theTypeButton);
group.add(theExtButton);
JLabel newLabel = new JLabel("Choose the Format type for the data to be displayed");
theButton = new JButton("OK");
theButton.addActionListener(this);
theButton.setActionCommand("" + THE_BUTTON_OPTION);
JPanel radioPanel = new JPanel(new GridLayout(0, 1));
radioPanel.add(newLabel);
radioPanel.add(theStandardButton1);
radioPanel.add(theTimeButton);
radioPanel.add(theTypeButton);
radioPanel.add(theExtButton);
radioPanel.add(theButton);
add(radioPanel, BorderLayout.LINE_START);
public void actionPerformed (ActionEvent e) {
if(e.getSource() == theButton)
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("The Font");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
TableFonts newFont = new TableFonts();
newFont.setOpaque(true); //content panes must be opaque
frame.setContentPane(newFont);
//Display the window.
frame.pack();
frame.setVisible(true);
selectedOption = Integer.parseInt(e.getActionCommand().trim());
public Formats getInstance(){
return this;
and the last class:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class TableFonts extends JPanel implements ActionListener{
static String standardFont = "Standard Font";
static String boldFont = "Bold Font";
static String italicFont = "Italic Font";
static String monospaceFont = "Monospace Font";
public JRadioButton theStandardButton ;
public JRadioButton theBoldButton;
public JRadioButton theItalicButton;
public JRadioButton theMonospaceButton ;
public TableFonts()
theStandardButton = new JRadioButton(standardFont);
theStandardButton.setMnemonic(KeyEvent.VK_B);
theStandardButton.setSelected(true);
theBoldButton = new JRadioButton(boldFont);
theBoldButton.setMnemonic(KeyEvent.VK_B);
theItalicButton = new JRadioButton(italicFont);
theItalicButton .setMnemonic(KeyEvent.VK_B);
theMonospaceButton = new JRadioButton(monospaceFont);
theMonospaceButton.setMnemonic(KeyEvent.VK_B);
ButtonGroup group = new ButtonGroup();
group.add(theStandardButton);
group.add(theBoldButton);
group.add(theItalicButton);
group.add(theMonospaceButton);
theStandardButton.addActionListener(this);
theBoldButton.addActionListener(this);
theItalicButton.addActionListener(this);
theMonospaceButton.addActionListener(this);
JLabel newLabel = new JLabel("Choose the correct font for the data to be displayed");
JPanel radioPanel = new JPanel(new GridLayout(0, 1));
radioPanel.add(newLabel);
radioPanel.add(theStandardButton);
radioPanel.add(theBoldButton);
radioPanel.add(theItalicButton);
radioPanel.add(theMonospaceButton);
add(radioPanel, BorderLayout.LINE_START);
public void actionPerformed(ActionEvent e) {
The problem I am getting is the Number format exception when the OK button of the class Formats is clicked...
here is the error I am getting:
java.lang.NumberFormatException: For input string: "OK"
at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:48)
at java.lang.Integer.parseInt(Integer.java:426)
at java.lang.Integer.parseInt(Integer.java:476)
at Formats.actionPerformed(Formats.java:80)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
64)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
COULD YOU GUYS PLEASE TELL ME HOW TO GET AROUND THIS PROBLEM:
THANKS...It's in this line:
selectedOption = Integer.parseInt(e.getActionCommand().trim());
Kind regards,
Levi
PS. have you noticed the [code][code[i]] tags? -
1)Hi. i was trying to find some exercises on writing programs in java. i wanted to see how much i have learned about this language. i searched on google to see if they have exercise problems like for eg
write a program in java that reads a data file and sort the file in ascending order.
any help will be really appreciated.
2) any applet books available online ?i google and can't find anything(google, ask, yahoo)
Thanks alot for that site. Looks very interesting. from basic to advance but what if i cannot debug a program after several of hours ? i dont have to use the forums all the time. i was wondering if i can get a site with java questions and solutions also in java if i get stuck.
Message was edited by:
fastmike -
Some compiling problem with java files in JSP
I wrote a file "ProductManager.java" to use the class of Product to do certain functions which are executed in a jsp, however, there are some curious errors.
C:\Tomcat\webapps\examples\WEB-INF\classes\com\wrox\begjsp\arrayexample3>javac P
roductManager.java
ProductManager.java:5: cannot resolve symbol
symbol : class Product
location: class com.wrox.begjsp.arrayexample3.ProductManager
private Product[] productList = new Product[3];
^
ProductManager.java:20: cannot resolve symbol
symbol : class Product
location: class com.wrox.begjsp.arrayexample3.ProductManager
public Product[] getProductList(){
^
ProductManager.java:28: cannot resolve symbol
symbol : class Product
location: class com.wrox.begjsp.arrayexample3.ProductManager
public Product getProductDetails(int prodid) {
^
ProductManager.java:5: cannot resolve symbol
symbol : class Product
location: class com.wrox.begjsp.arrayexample3.ProductManager
private Product[] productList = new Product[3];
^
ProductManager.java:13: cannot resolve symbol
symbol : class Product
location: class com.wrox.begjsp.arrayexample3.ProductManager
productList[0] = new Product(1,"Wrox Press Beginning JSP",49.99);
^
ProductManager.java:14: cannot resolve symbol
symbol : class Product
location: class com.wrox.begjsp.arrayexample3.ProductManager
productList[1] = new Product(2,"Wrox Press Professional JSP",59.99);
^
ProductManager.java:15: cannot resolve symbol
symbol : class Product
location: class com.wrox.begjsp.arrayexample3.ProductManager
productList[2] = new Product(3,"Wrox Press Beginning Java",39.99);
^
7 errors
Here is the source code:
Product.java
package com.wrox.begjsp.arrayexample3;
public class Product {
private int productId;
private String productName;
private double productPrice;
public Product(int prodid, String prodname, double prodprice) {
productId = prodid;
productName = prodname;
productPrice = prodprice;
public int getProductId(){
return productId;
public void setProductId(int ProductId){
this.productId = ProductId;
public String getProductName(){
return productName;
public void setProductName(String ProductName){
this.productName = ProductName;
public double getProductPrice(){ return productPrice; }
public void setProductPrice(double productPrice){
this.productPrice = productPrice;
ProductManager.java
package com.wrox.begjsp.arrayexample3;
public class ProductManager{
private Product[] productList = new Product[3];
private int productCount;
public ProductManager() {
initializeProductList();
private void initializeProductList() {
productList[0] = new Product(1,"Wrox Press Beginning JSP",49.99);
productList[1] = new Product(2,"Wrox Press Professional JSP",59.99);
productList[2] = new Product(3,"Wrox Press Beginning Java",39.99);
public Product[] getProductList(){
return productList;
public int getProductCount(){
return productList.length;
public Product getProductDetails(int prodid) {
int ProductIndex = -1;
for(int i=0;i<this.getProductCount();i++) {
if (prodid == productList.getProductId()) {
ProductIndex = i;
break;
if (ProductIndex != -1) {
return productList[ProductIndex];
} else {
return null;
Please tell me how to debug it to make it works, thxadd C:\Tomcat\webapps\examples\WEB-INF\classes to your classpath.
You can do this through the control panel or by:
set CLASSPATH=%CLASSPATH%;C:\Tomcat\webapps\examples\WEB-INF\classes -
Compilation problem for 64-bit
Hi,
I am converting my application from 32-bit to 64-bit. When I compile one of my projects with "-xarch=v9 -fast" option, it generates .o files of 32-bit(varified by file command). If I remove -fast option, the it generates 64-bit .o files.
Can anybody tell me, how to build for 64-bit with -fast option.
Thanks--
AmitHi,
By changing the order, it worked fine. But now still I'm getting error while linking.
While linking it gives the following error.
ld: fatal: /users/aknanda/myapp/obj/SunWS_cache/CC_obj_8/8GUY2EKcTAmGapxEt9Oo.o: wrong ELF class: ELFCLASS32
I varified that some of the .o files inside the "SunWS_cache/CC_obj_8" folder were of 32-bit.
I deleted all the fies from the SunWS_cache folder, rebuild the application. Before the linking starts, I have varified that all the files inside the "SunWS_cache/CC_obj_8" were of 64-bit, but during linking, the linker might re-genarate some of those .o files which are of 32-bit. I am using -xarch=v9 option in the linking also.
Thanks-
Amit -
Removing compiler problem markers
Does anybody know why I keep getting a pop up window that is
telling me it can't find a marker id at some location number? I am
getting one of these messages about every other time I save and
compile and it is getting RATHER ANNOYING!!! What does it mean and
how do I eliminate it???
Thanks in advance for helping me lower my blood pressure!!!
Have an Ordinary Day...
KomputerMan ~|:-)Yes, I am now getting the same error - but slightly different
wording
Removing compile problem markers (Time of error: blah blah
blah...)
The details section states:
An internal error occurred during "Removing compiler problem
markers".
java.lang.NullPointerException
I'm able to compile the same code with no problem from the
command line on a Linux box. Running the clean comand doesn't fix
this unfortunately.
Some background info: I'm running a FDS project against a
JBoss server on a windows XP machine.
So, I deleted my project and shut down flex builder. Then
removed the project files (.actionScriptProperties, .project, &
.flexProperties) and removed the project folder from the flex.war
folder in the jboss server. Restarted Flex Builder and created a
new project the same way the project was built. And wa-la the
problem is gone.
So, something has gone bad with the project, but I am not
sure what because a look a the previous project files and they all
seem normal. I was having problems with the project trying to
create the "Output Directory" early, but a rebuild of the project
seemed to fix that too.
hope this helps.
--Andy -
Before Update Trigger compilation problem
Hello experts! I have a compilation problem for a trigger I am trying to create.
As a matter of fact it should update INT_INITIAL with the old value of INT_LOCK.
The compilation fails and the debugger raises an ORA 01747 error (invalid declaration for user table, user column etc.)
Do you have an idea what is wrong with my code?
create or replace
TRIGGER TRIGGER_INT_INITIAL
BEFORE UPDATE ON TBL_MATRIX_INTERMEDIATE_RESULT
FOR EACH ROW
Begin
IF NVL(:new.INT_INITIAL, 0) != :old.INT_LOCK THEN
UPDATE TBL_MATRIX_INTERMEDIATE_RESULT set
:NEW.INT_INITIAL = :old.INT_LOCK;
END IF;
END;Regards,
SebHi Seb,
You don't need to use UPDATE stmt here as you are updating the same table on which your trigger is fired. So it may cause mutating table error too.
when you use :new.colname it will immediately take care of the new value to be inserted in the respective column.
So no need to write Update stmt.
Hence remove,
UPDATE TBL_MATRIX_INTERMEDIATE_RESULT set And use := is an assignment operator whereas = is to equate..
:=Twinkle -
I was wondering if any of you guys also use or know TEXTPAD ? If yes, what do you guys think of it ? Does textpad good or suitable for writing and compiling codes for Java ?
Thanks !Does it good, or no ?Yes, it's excellent. As a tool to use when learning Java it cannot be beaten, and subsequently it is still just great. I would encourage you to purchase a full licence.
When you compile bigger
programs, does textpad still works ?Sure. Although once you are very familiar with the tools of Java development (particularly javac and java) then you will probably want to pick up an IDE to use instead of Textpad. That won't stop Textpad from being useful.
What are the
disadvantages of it ?It's not an IDE, just a text editor with some programmer oriented features. That's also one of its advantages.
And what do you usually use to
write Java code ?For short examples I still use Textpad. For viewing code in an ad hoc manner, I still use Textpad. For writing large applications I use Eclipse 3.1M7 where possible and (usually) WebSphere Application Developer where not.
Dave. -
In case of problems with SAP GUI for Java ...
Hello all,
in case of having problems (errors, ABAP dumps etc.) with SAP GUI for Java, please create an OSS message on component BC-FES-JAV with information described in OSS note 326558
http://www.service.sap.com/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700010521522001.
This makes sure our official support channels get aware of your problem.
Thanks and best regards
Rolf-MartinHello Rolf-Martin,
i don't have access to this website to view the note.
The version of the Suse libc is:
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3 20030226 (prerelease) (SuSE Linux).
Compiled on a Linux 2.4.20 system on 2003-03-13.
Best Regards,
Piotr Brostovski -
Problem with running sample code from XML Schema Processor for Java
Hi there,
I downloaded the XML Schema Processor for Java and tried it out. Unfortunately, it failed at the first step. FYI, I included all xmlparserv2.jar and xmlschema.jar in my classpath.
I compiled XSDSample.java with a warning: XSDSample.java uses a deprecated API. Recompile with "-deprecation" for details. There was no problem with compiling XSDSetSchema.java.
When I tried to run report.xml by typing java XSDSample report.xml, I got Parsing report.xml
NonParserException: null.
I guess that report.xml from the sample is not valid.
Could any one give me a hint? Any suggestion would be greatly appreciated.
---Denali
nullPlease post this message at:
Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB -
Problem on open Preference in CMC: Unable to compile class for JSP
Hi all,
I meet problem when opening Preference in CMC.
When I click "Web Intelligence" or "Desktop Intelligence", the following message will be display:
An error has occurred:
Unable to compile class for JSP
I have check for catalina.out in tomcat, following error comes out:
java.io.FileNotFoundException: /opt/boe/bobje/tomcat/work/Catalina/localhost/AnalyticalReporting/org/apache/jsp/jsp/User_005fWebiPreferences/user_005fwebipreferences_jsp.java (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:140)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at com.businessobjects.webutil.struts.CrystalUTF8InputActionServlet.process(CrystalUTF8InputActionServlet.java:32)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Please help to indicate where is the problem. Many thanks.
Regards,
MayHi all,
I meet problem when opening Preference in CMC.
When I click "Web Intelligence" or "Desktop Intelligence", the following message will be display:
An error has occurred:
Unable to compile class for JSP
I have check for catalina.out in tomcat, following error comes out:
java.io.FileNotFoundException: /opt/boe/bobje/tomcat/work/Catalina/localhost/AnalyticalReporting/org/apache/jsp/jsp/User_005fWebiPreferences/user_005fwebipreferences_jsp.java (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:140)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at com.businessobjects.webutil.struts.CrystalUTF8InputActionServlet.process(CrystalUTF8InputActionServlet.java:32)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Please help to indicate where is the problem. Many thanks.
Regards,
May -
Exception in thread "main" java.lang.Error: Unresolved compilation problem
The following code:
public boolean find(MusbachJ_Person person,BstNode node)
//p.l(person);p.l(node.intData);
if(node.intData.compareTo(person)==0)
return true;
if( node.leftNode != null ) find(person,node.leftNode );
if( node.rightNode != null ) find( person, node.rightNode);
else
return false;
}returns the following compilation error:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
This method must return a result of type boolean
at MusbachJ_TreeNode.find(MusbachJ_TreeNode.java:32)
at MusbachJ_PeopleTree.main(MusbachJ_PeopleTree.java:91)
But I don't understand, the else statement is right there, what more does it want? Thanks! :)John_Musbach wrote:
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Unresolved compilation problem is an error that you'll only ever see if you're using an IDE. If you used the javac compiler, then you would have seen that the code doesn't even compile.
The reason (as others have pointed out) is, that some paths through your method don't return a value.
I'll re-write your code in the code-style that I usually use, because then it might be easier for you to see the problem:
public boolean find(MusbachJ_Person person,BstNode node)
if(node.intData.compareTo(person)==0) {
return true;
if( node.leftNode != null ) {
find(person,node.leftNode );
if( node.rightNode != null ) {
find( person, node.rightNode);
else {
return false;
}There are two prolbems. I'll spell out the first and let the other one for you to find:
1.) you don't do anything with the return-values of the find-methods you are calling. What do you want to do with them?
2.) What do you return if the current node is not the one that you want and you've got a right node? -
Dear all
My organization has a web cum wap site running on XML - XSL. When i uploaded a modified file it started giving me the following error
java.lang.Exception: XSP Java Compiler: Compilation failed for
_index.java The compiler has run out of memory. Consider using the
"-J-mx<number>" command line option to increase the maximum heap
size.
The site is running on Linux platform ( with Apache, Jserv, Cocoon).
can anybody help me to resolve this problem.
with thanxs and regards
Rohit Joshi
(Mobile Application Developer)
Globe Communication (http://www.globecommunication.net)
Nil - 26 Malviya Nagar, Delhi, India.Thank you very much.
But the as i had wrote that am using Apache, Jserv and Cocoon, my site is in XML , XSL format..i can do logical work in XML and representation in two formats one is HTML and one in WML through XSL. so only i have to make all these files and put them in to theirs respective place, htdocs. Then , as u know, it automaticaaly parsed, compiled and processed through parsers and processors provided by servers. So i don't need to compile each java file. Now u suggest me what i have to do? Is their any procedure that Cocoon Engine automaticaaly can increased this size.
Thanxs and regards
Rohit Joshi
Maybe you are looking for
-
IChat video keeps closing down the program
Hey, I just bought my new Macbook air yesterday and after resolving connection problems I am now having constant problems with the video on ichat. Four times in a row it has closed down after a few minutes of video, here is the report code Process: i
-
Hello, I'm trying to sync my iphone with my itunes on my computer but it comes up with a message saying 'cannot connect to this iphone as the newest itunes needs to be downloaded'.. i downloaded this to my computer but whenever i open itunes it looks
-
Video upload size to MoblieMe?
I got a new iPhone 4G. I use iPhoto '09 to download my videos. I want to publish them to a Mobile Me Gallery, but they take for ever to upload because they are HD. Is there a way to upload the videos from iPhoto in a smaller format to Mobile me? Kevi
-
Changing default value DropDownbyindex in wdinit in view
Hi everyone, I'm using drop down by index in a view. It has many values but I want to change default value. I think that I have to simulate an action on dropdownbykey like select a value. Can i retrieve the index of an element of nod passing his valu
-
I am trying to trigger a strobe light using labview 2009. What I need to do is generate a 50us 10V pulse at various frequencies. I am using an E series PCMCIA card and a SC-2345 and I have a SCC-AO10. I am assuming I need to somehow use a counter bec