Pls find out the exception in this simple program...
Pls tell me wots the reason of the exception in this program since im getting an exception like this..
Exception is thread "main" java.lang.NoClassDefFoundError: derived
Program is the following:-
class base {
public base() {
System.out.println("BASE CLASS DEFAULT CONSTRUCTOR");
public base(int i) {
System.out.println("inside base i");
public class derived extends base {
public static void main(String args[]) {
derived obj=new derived();
derived() {
System.out.println("Derived class constructor");
derived(int i) {
System.out.println("inside derived i");
Pls help me...
Javapedia: Classpath
How Classes are Found
Setting the class path (Windows)
Setting the class path (Solaris/Linux)
Understanding the Java ClassLoader
java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
Similar Messages
-
How to find out the T-code of a program
Hi Experts,
I want to find out the T-codes of some programs. For that I am passing the program name in TSTC table and I am getting the T-code.
But TSTC table gives T-code for only main program and not for the includes. Is there any way to find out the T-codes for include programs also?
Thanks and regards,
VenkatHi,
there wont be tcodes for include programs....
u can find the tcode for a running program through Menu->system->status (now a window opens,here u can see transaction ie.,tcode).
Also when the program is not running,take se80 and put the program name,in the tree u can see the transaction attached.
Regards
Sajid -
Unable to find out the Exception
Hi,
I have a created a generic method to read value from the Dropdown UI element, but i am getting some exception and un able to find out what kind of exception i am getting and which line of code causing the problem, i am giving the peace of code , could any body tell me why the below method throwing exception?
public java.lang.String readValueFromDropDown( java.lang.String attributeName, java.lang.String contextNodeName )
//@@begin readValueFromDropDown()
IWDAttributeInfo attribute = null;
String attrValue="";
try{
IWDNode node= wdContext.getChildNode(contextNodeName,1);
IWDNodeInfo rootNode =wdContext.getNodeInfo();
Iterator iterationNodes = rootNode.iterateChildren();
//Vector
Vector mainVector,tempVector1,tempVector2;
mainVector = new Vector();
tempVector1= new Vector();
tempVector2 = new Vector();
boolean isContentNodeFound= false;
while(iterationNodes.hasNext()){
tempVector1.add((IWDNodeInfo)iterationNodes.next());
do{
int k=0;
int temp1VectorSize=tempVector1.size();
for(int i=0;i<tempVector1.size();i++){
IWDNodeInfo tempNodeInfo =(IWDNodeInfo)tempVector1.elementAt(i);
mainVector.addElement(tempNodeInfo);
if(tempNodeInfo.getName().equalsIgnoreCase(contextNodeName)){
isContentNodeFound=true;
ISimpleTypeModifiable smpMod = attribute.getModifiableSimpleType();
IModifiableSimpleValueSet valueSet = smpMod.getSVServices().getModifiableSimpleValueSet();
IWDNodeElement nodeElement = node.getCurrentElement();
attrValue =valueSet.getText(nodeElement.getAttributeAsText(attributeName));
break;
for(Iterator iterationChildsTemp2=tempNodeInfo.iterateChildren();iterationChildsTemp2.hasNext();){
tempVector2.addElement((IWDNodeInfo)iterationChildsTemp2.next());
k=k+1;
if(tempVector1.size()== k){
tempVector1.removeAllElements();
for(int j=0;j<tempVector2.size();j++){
tempVector1.addElement(tempVector2.elementAt(j));
}while(tempVector2.size()>0 || isContentNodeFound);
if(!isContentNodeFound){
attrValue="not found";
else if(isContentNodeFound && attrValue.equals("")){
attrValue="found but no value returned";
}catch(Exception e){
// wdThis.wdGetFcVndUtilityInterface().logAndReportException(READVALUEFROMDROPDOWN,e,INTERFACENAME);
attrValue="Exception";
wdContext.currentApproverDetailsElement().setApproveRejectReason("Exception");
}finally{
return attrValue;
//@@endWrong place!
Place this question in WebDynpro-java forum
-Ashutosh -
Can't find out the problem in this query
emp Table->
(name varchar2(10),
shot_seq varchar2(1)
The emp table contains around 2 million records.
When I run the following query the output comes within 20 seconds.
select name,sum(decode(shot_seq,1,1,0)) as pd2 from emp where shot_seq = 1
group by name;
But when i made the change in the query by putting ' shot_seq = '1' ', so that query is now:
select name,sum(decode(shot_seq,1,1,0)) as pd2 from emp where shot_seq = '1'
group by name;
The output doesn't comes, sqlplus just hangs up.
Please explain what is the reason behind this.
Thanks for ur time,
skala.Don't you think your query should be like this as seq_shot is a varchar2(1) field ?
select name,sum(decode(shot_seq,'1',1,0)) as pd2 from emp where shot_seq = '1'
group by name;
null -
Help me to sort out the problem in this Simple Client - Server problem
Hi all,
I have just started Network programming in java . I tried to write simple Client and Server program which follows
MyServer :
package connection;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
public class MyServer {
* @param args
public static void main(String[] args) {
String ss ="";
try {
ServerSocket sockServer = new ServerSocket(6000);
Socket clientLink = sockServer.accept();
System.out.println("Connection Established");
InputStreamReader isr = new InputStreamReader(clientLink.getInputStream());
BufferedReader bufReader = new BufferedReader(isr);
System.out.println("buf "+bufReader.readLine());
try {
while ((ss=bufReader.readLine())!=null) {
ss+=ss;
System.out.println("client message "+ss);
} catch (IOException e) {
System.out.println("while reading");
e.printStackTrace();
} catch (IOException e) {
System.out.println("Can't able to connect");
e.printStackTrace();
}MyClient:
package connection;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
public class MyClient {
* @param args
public static void main(String[] args) {
try {
Socket client = new Socket("127.0.0.1",6000);
OutputStreamWriter osw = new OutputStreamWriter(client.getOutputStream());
PrintWriter pw = new PrintWriter(osw);
pw.write("hello");
} catch (IOException e) {
System.out.println("Failed to connect");
e.printStackTrace();
}I got this error message when I start my client program .
Error message :
Connection Established
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
Can't able to connect
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at connection.MyServer.main(MyServer.java:27)I think this is very simple one but can't able to find this even after many times . please help me to sort out this to get start my network programming .
Thanks in advance.System.out.println("buf "+bufReader.readLine());Here you are reading a line from the client and printing it.
try {
while ((ss=bufReader.readLine())!=null) {
ss+=ss;
}Here you are reading more lines from the client and adding it to itself then throwing it away next time around the loop.
System.out.println("client message "+ss);... so this can't print anything except 'null'.
pw.write("hello");Here you are printing one line to the server. So the server won't ever do anything in the readLine() loop above. Then you are exiting the client without closing the socket or its output stream so the server gets a 'connection reset'. -
Help me find out the problem of this kernal panic
I was unmounting a FTP account via finder and I was useing macfuse to access it.
panic(cpu 0 caller 0x2E1D64AC): MacFUSE: vnode reclaimed with valid fufh (type=0, vtype=1)
Latest stack backtrace for cpu 0:
Backtrace:
0x000952D8 0x000957F0 0x00026898 0x2E1D64AC 0x000FDBA4 0x000E6048 0x000E6358 0x000E87B4
0x000E5D60 0x000EC2D0 0x000EC100 0x002AB7F8 0x000ABB30 0x9004B5FC
Kernel loadable modules in backtrace (with dependencies):
com.google.filesystems.fusefs(0.2.5)@0x2e1ce000
Proceeding back via exception chain:
Exception state (sv=0x2DB28000)
PC=0x900647CC; MSR=0x0000D030; DAR=0xA000C56C; DSISR=0x40000000; LR=0x00002D94; R1=0xBFFFF910; XCP=0x00000030 (0xC00 - System call)
Kernel version:
Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; root:xnu-792.17.14~1/RELEASE_PPCModel: PowerMac4,4, BootROM 4.6.4f1, 1 processors, PowerPC G4 (3.3), 1 GHz, 1 GB
Graphics: ATI Radeon 7500, ATY,RV200, AGP, 32 MB
Memory Module: DIMM0/J1600, 512 MB, SDRAM, PC133U-333
Memory Module: DIMM1/J1601, 512 MB, SDRAM, PC133U-344
AirPort: AirPort Extreme, 405.1 (3.90.34.0.p18)
Modem: MicroDash, UCJ, V.92, 1.0F, APPLE VERSION 2.6.6
Network Service: AirPort, AirPort, en1
Parallel ATA Device: Maxtor 2F040L0, 38.29 GB
Parallel ATA Device: TOSHIBA ODD-DVD SD-R1412
USB Device: USB Trackball, Logitech, Up to 1.5 Mb/sec, 500 mA
USB Device: Hub, Up to 12 Mb/sec, 500 mA
USB Device: USB Hub, Lexmark, Up to 12 Mb/sec, 500 mA
USB Device: Lexmark X1100 Series, Lexmark, Up to 12 Mb/sec, 500 mA
USB Device: X1100 Series, Lexmark, Up to 12 Mb/sec, 500 mA
USB Device: Natural® Ergonomic Keyboard 4000, Microsoft, Up to 1.5 Mb/sec, 500 mA
FireWire Device: OXFORD IDE Device, Oxford Semiconductor Ltd., Up to 400 Mb/sec
FireWire Device: > LaCie d2 DVD-RW Firewire, LaCie Group SA, Up to 400 Mb/secKPs are usually caused by hardware problems. When trying to troubleshoot problems, disconnect all external devices except your monitor, kbd & mouse. Do you experience the same problems?
May be a solution on one of these links.
Troubleshooting
The X Lab (Troubleshooting & Maintenance of OS X)
OS X Routine Maintenance & Generic Troubleshooting
Prevent Mac Disasters
Kernel Panic
Mac OS X Kernel Panic FAQ
Mac OS X Kernel Panic FAQ
Resolving Kernel Panics
12-Step Program to Isolate Freezes and/or Kernel Panics
Cheers, Tom -
Plz tell me the error at this simple program
at this orogram i want the user to input the number and then he get th factorial...
my program is:
import javax.swing.JOptionPane;
public class Ch4_32a
public static void main (String[]args)
int f=1, i=1,N;
String E;
String M = JOptionPane.showInputDialog("Enter the number");
N=Integer.parseInt(M);
while(i<=N);
f=f*i;
i++;
JOptionPane.showMessageDialog(null,"the factorial is"+E);
f=Integer.parseInt(E);
******and when i copile it the result is:
C:\Documents and Settings\F A M I L Y\Desktop\MyProgs\azza\Ch4_32a.java:22: variable E might not have been initialized
JOptionPane.showMessageDialog(null,"the factorial is"+E);
^
1 error
it tell me to init the value of E but ir is a string,,
so plz help me to get the real errori delete the (parseInt{) and compile it completle
but when i excut it the firs widow appear (Ent the number)
i Enter the number and then "ok" but the second window don't appear which well tell me the result({f) -
How to find out the userid is ddic, how to find out thepassword for this.
hi
i am mohan. We user-id is DDIC. we forgot the password for this user id. how to find out the password for this. we find the table for this usr02. but it is hexa decimal code. how to find that codehi
check these threads
Re: Check SAP username and password.
Re: Validation of user name, pwd in ZXUSRU01 exit
if helpful, reward
Sathish. R -
How to search this value in oracle database to find out the table
Hi expert,
I know there is a value in oracle database, please show me how to search this value in oracle database to find out the table holding this value.
Many Thanks,918440 wrote:
Hi friends,
this question is really practical, I already know there is value from application saved in database, I want to search the whole database to figure out which table the value is contained.write SQL that writes SQL to query every table.
Handle: 918440
Status Level: Newbie
Registered: Mar 2, 2012
Total Posts: 20
Total Questions: 10 (10 unresolved)
why do you waste time here when you NEVER get any answer to any question you post? -
Table to find out the function modules used in a particular program
Hi,
Is there any standard table to find out the function modules used in a particular program?
Such as there is a table D010TAB to find out the tables used in a program .Hello
There is no exist such table.
But try this snippet:
REPORT ZSEARCH.
PARAMETERS: P_NAME LIKE D010SINF-PROG.
DATA: PROGTXT(72) TYPE C OCCURS 0 WITH HEADER LINE.
DATA: TMP(72) TYPE C OCCURS 0 WITH HEADER LINE.
DATA: FUNCT TYPE RS38L_FNAM OCCURS 0 WITH HEADER LINE.
DATA: INCL TYPE RSEUINC OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'RS_GET_ALL_INCLUDES'
EXPORTING PROGRAM = P_NAME
TABLES INCLUDETAB = INCL.
LOOP AT INCL.
READ REPORT INCL-MASTER INTO TMP.
APPEND LINES OF TMP TO PROGTXT.
REFRESH TMP.
ENDLOOP.
READ REPORT P_NAME INTO TMP.
APPEND LINES OF TMP TO PROGTXT.
LOOP AT PROGTXT.
IF PROGTXT CS 'CALL FUNCTION'.
SEARCH PROGTXT FOR ''''.
IF SY-SUBRC = 0.
DO.
SHIFT PROGTXT LEFT BY 1 PLACES.
IF PROGTXT(1) = ''''.
SHIFT PROGTXT LEFT BY 1 PLACES.
DO.
SHIFT PROGTXT RIGHT BY 1 PLACES.
IF PROGTXT+71(1) = ''''.
SHIFT PROGTXT RIGHT BY 1 PLACES.
CONDENSE PROGTXT.
FUNCT = PROGTXT. COLLECT FUNCT. EXIT.
ENDIF.
ENDDO.
EXIT.
ENDIF.
ENDDO.
ENDIF.
ENDIF.
ENDLOOP.
SORT FUNCT.
LOOP AT FUNCT.
WRITE: FUNCT. NEW-LINE.
ENDLOOP. -
Find out the process id from a background running script
Hello all:
I created a java service and use a shell script to drive it from background. In the script, I have code like this:
javac myApp & I want to find out the pid for this process. After googling for a while I came up with this:
echo $$ > test.pid However, I notice two things:
1. This only works when my script runs frontground, meaning only when I remove "&";
2. The pid file, test.pid, won't be created until the running script exits, after I clicked ctrl+c, for instance.
Now the question is, how can I find out the pid of a background running script from within the script itself?
I don't want to use code such as ps -ef | grep .... because of the possible name conflict.
Thanks,
JohnnyYes, but as far as I understand this can happen to any background process, for instance, when the user logs out while a background process is still running.
But using the "$!" variable as you've shown is the "correct" solution.
This is probably what the OP is looking for:
javac myApp & echo $! > test.pidFrom the bash man page:
$ Expands to the process ID of the shell. In a () subshell, it expands to the process ID of the current shell, not the subshell.
! Expands to the process ID of the most recently executed background (asynchronous) command. -
I have an iPhone 4S that is a replacement of a defective 4s. When I activated the newer phone, I believe I transferred over everything except pictures (had multiple failures trying to backup and restore). Now the phone shows over 3Gb of data backed up in the cloud from my old 4s. How can I find out what is in this backup? It is preventing me from backing up my new 4s to the cloud due to the amt of data. It may be duplicated info that I don't need or I may want to archive the backup or parts of it like pictures.
You can not access the backup directly.
Did you restore your replacement from this backup?
If so then you already have everything in the backup on your device.
If not, you can wipe the device and restore from this backup:
Settings > General > Reset > Erase All Content & Settings
What is it you are worried about losing that isn't already on your current device? -
I have recently got a new replacement iPhone 4. Since I got this I have found that my data allowance is getting used up during the night while my phone is charging on the bedside table. How an I find out what is causing this and stop it happening? Some nights the usage is 150 meg!
You can not access the backup directly.
Did you restore your replacement from this backup?
If so then you already have everything in the backup on your device.
If not, you can wipe the device and restore from this backup:
Settings > General > Reset > Erase All Content & Settings
What is it you are worried about losing that isn't already on your current device? -
Is there any way I can find out the service record on this mac ?
I purchased a used QS from an authorized apple dealer at their after boxing day sales event. This QS is extremely quite compared to my polar express MDD.
Is there any way I can find out the service record on this mac ?
Somewhere away back when I heard that by knowing the serial number the details of the service record on the given mac could be found. However in those days I only bought new. These days with mac's inability to run applications that require the for real OS 9 ( not classic ) I have to scour the used market. I have some high end audio midi programmes ( for example emagic, cubase VST score ) that do the job and sometimes better then then the OS X versions.Hello,
You can use System.getProperty("SAPSYSTEMNAME"); in your UDF as specified in this thread.
Get name of XI System in mapping
Hope this helps,
Mark
Edited by: Mark Dihiansan on Apr 27, 2011 7:51 AM -
How to analyze this waveform to find out the point
The current waveform as the following attachment ,How can I analyze it to find out the point a in order to calculate the different current rms between it?
Attachments:
æªå½å.JPG 44 KBThe same question as mention with this link:http://forums.ni.com/ni/board/message?board.id=2170&message.id=8831&jump=true
Maybe you are looking for
-
Is there a standard report that shows vendor balances (open items, cleared items) with cost center, WBS element, project, business areas and Internal Order. I checked FBL1N and FK10N but they don't show the CO objects. I even checked some other repor
-
Hello Experts. I am using Extended Classic Scenario, When I do the accept the(EBP) PO response, the follow on document show that 'Error in PO response' with a PO response number, any body can help me why this happens? If you need any further informat
-
The application Youtube is gone from the home page and is no longer listed in the Settings. When I use Safari to access Youtube most of the videos will not play and state "Not authorized by subscriber" or another such statement. All of these same v
-
How to copy values in a multiple block based on conditions....
hi i have a multiple block having 5 records and 10 columns...what i want to do is that when i am in the 2 record and if the values in the 2 to 5th column is same when compared with the values of the same column in 1st record....copy the values of col
-
Weather app iOS7 - how can I change mph to km/h (internasystem)?
I have iOS7.0.2 on my iPhone5, I do like to Apple Weather app (which is a copy for the original Yahoo weather app) but itis missing (or I can't find) a way to change to wind speed from the default English mph to the International km/h. Any ideia or t