Can't Run Simple Example
Just installed jDev 3.2 on Win2K. When I try to run any java class I get the error "Cannot Determine Runnable Node". for a simple example I copied the "Clock" example to "MyProjects" folder, opened it in jDev, made/compiled the class (checked that clock.class was in MyClasses folder), but then run button does not work. I've checked the IDE default path settings and think they are OK.
Could not find anything in the documentation about this error message. What don't I have set up right?
Don... thanks. It does run when executed from the html. I was thinking applets could be run directly from within the IDE even without a main.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don:
make sure yu are highlighting and running a program with a "main" in it.
if it's an applet,then execute it's related html.<HR></BLOCKQUOTE>
null
Similar Messages
-
Can it be easier when running simple examples in jmstutor
Hi, I'm a new user of java. when I tried to use Simple examples in jms_tutorials, such as SimpleQueueSender.java, I found I had to type a long command:
java -Djms.properites=%J2EE_HOME%\config\jms_client.properties SimpleQueueSender MyQueue 3
It seems a little inconvienent.
Can I first set the properties, then run the programe?
How?
Thanks a lot!You could put the command in a script and run it that way. But you do need to pass that -D option to the java command at J2EE 1.3.1.
You could move to J2EE 1.4 Beta and use the J2EE Tutorial Addendum, which simplifies running the examples by providing Ant build scripts.
Kim Haase
Technical Writer
Sun Microsystems, Inc. -
Can't get "Simple Example Doclet" to run -- Cannot find
I am trying to run the "Simple Example Doclet" at http://java.sun.com/j2se/1.3/docs/tooldocs/javadoc/overview.html.
It appears to compile ok, but when I go to run it I get the message "javadoc: Cannot find doclet class ListClass".
Listed below is:
1. The execution command and error message
2. The version (output of javadoc -J-version)
3. The javac compile command and input and output files
All directories have been kept the same as in the example.
Any help would be appreciated.
Thanks
1. C:\jdk1.3>javadoc -doclet ListClass -classpath C:\jdk1.3\lib\tools.jar MyClass.java
javadoc: Cannot find doclet class ListClass
1 error
2. javadoc -J-version
gives
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode).
3. javac -classpath C:\jdk1.3\lib\tools.jar ListClass.java
appears to give good compile ....
e. g. Input source file ListClass.java is as follows:
import com.sun.javadoc.*;
public class ListClass {
public static boolean start(RootDoc root) {
ClassDoc[] classes = root.classes();
for (int i = 0; i < classes.length; ++i) {
System.out.println(classes);
return true;
and.....
decompiled ListClass.class file is as follows:
// Decompiled by DJ v2.8.8.54 Copyright 2000 Atanas Neshkov Date: 10/11/2001 4:09:46 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: ListClass.java
import com.sun.javadoc.RootDoc;
import java.io.PrintStream;
public class ListClass
public ListClass()
public static boolean start(RootDoc rootdoc)
com.sun.javadoc.ClassDoc aclassdoc[] = rootdoc.classes();
for(int i = 0; i < aclassdoc.length; i++)
System.out.println(aclassdoc[i]);
return true;Sorry to be so late in getting back to you .. I was on vacation.
ListClass is in the current directory. I did get it to work however... In order to get it to work I had to do two things:
1. use -docletpath (even thought it was in the current path) e. g. -docletpath C:\jdk1.3\ListClass.jar
AND
2. Make the class file a jar file -- I could not get it to work otherwise.
p.s. the typo was a decompiler error. -
I can't run this example in flashbuilder4
hello. i'm newbie so i read some example flex, but i'm usually meet error. for example this:
http://share.megaplus.vn/dl.php/2062988. i know it is flex3 file,but in flashbuilder 4 have support trasition automatic flex3 to flashbuilder4
i can't run it in flashbuilder4 and if i want it run , how do i make?
please help me. ThanksHi Phuong,
Have you tried the horizontal scrollbar at the bottom of the sample. If you slide that back and forth, the carousel will spin around. You can also click on any thumbnail in the carousel to spin it to make that the active selection.
Cheers,
Maile -
Can't run DukesAgeResource examples (Your First Cup)
Hello, I believe I have found a possible issue in the "Your First Cup: An Introduction to the JavaTM EE Platform", and wonder if it relates to the fact that I cannot manage to run the example. At page 21, step 12, is states "In the REST Resources Configuration dialog, uncheck Add Jersey Library and click OK.". However, after clicking Finish (Step 11) no such a dialog is displayed, instead, NetBeans shows the DukesAgeResource.java file right away. Once I have completed entering the example and try to run it, I get this error message on the browser
HTTP Status 404 -
type Status report
message
descriptionThe requested resource () is not available.
GlassFish Server Open Source Edition 3.1.2.2
I deleted my project and files and tried again half a dozen times, with the same result.
I am starting out with Java EE, any clue about what I may be doing wrong? May be the issue is related to the discrepancy on the "Your First Cup" tutorial?
Note that the ready-made example that comes packaged with NetBeans runs fine.
Edited by: 966753 on Oct 21, 2012 6:25 AMFanta wrote:
Still, I believe I had followed all steps in the tutorial carefully.That's the sh1t with tutorials - they don't teach you anything, they just show you how to do stuff. So they can also show you how to do stuff badly and you'd assume it to be truth.
Get a good book and begin by understanding it all, not by learning "what code to write". -
How can i run the example programme without hardware
Hi,
We are using NI-9233 for our Project. We would like to run the example programme, the NI-9233 getting started(host).vi ... I would like to ask that how can i run the Programme without Hardware.& How shall i get the input signal (simulating signal)?because we would like to test it while we are waiting for the hardware to be delivered .
thanks
Best regardsAs Mike indicated , " you can use MAX to simulate some (not all) DAQmx devices. There's a NI-USB-9233 device that you can probably use. Open MAX, then expand "My System", the expand "Devices and Interfaces", then right-click on "NI-DAQmx Devices" and select "Create New NI-DAQmx Device -> NI-DAQmx Simulated Device". Select the device from the list. See the online help for MAX for further help.
If you don't see "NI-DAQmx Devices" in MAX you need to install NI-DAQmx. You can download it from NI here. "
hi,
the link you gave me to download is "NI-DAQmx Devices" ... There is no software to download for Labview 8.2.1. So should i use 8.1 or 8.3 instead of 8.2.1 ? If not, can you tell me the CD no. that includes the "NI-DAQmx Devices" folder of Labview 8.2.1 version? Because we can get the cd from our school's component store. Thank you so much.
Best Regards,
Su -
Hi
I have the jdk 1.5.0.6 and tomcat 5.5.16
on my machine.
The locations are as follows.
1) jdk ---> C:\j2sdk1.5.0_06
2) tomcat ---> C:\prgram files\Apache Software Foundation\Tomcat 5.5
3) IE 6.0
4) java class ---> C:\HelloWorld.java
The Queries i have are as follows.
1) How to set PATH?
2) How the set CLASSPATH?
3)how compile simple HelloServlet ?
4)how run simple HelloServlet ? using tomcat ..
please give me details
shrinath
Thanks in advanceRead the Chapter 11 Java Servlet Technology
Or search the web for servlet tutorial -
How can I run the examples?
I need make any test about WebLogic, I have WebLogic Server in Solaris 2.6.
Thanks in advancing.Well,
I do not know about Solaris, but for the Windows you have a pritty good explanation
HTML-files for each example.
So if you want to run for example the WebServices-example, you will look for the
HTML-File under C:\bea\samples\examples\webservices\rpc Folder.
I guess it is very the same on Solaris
good luck
naz -
Can't Run Bluetooth Examples (Error 1)
I am trying to set up Labview to control an Arduino via Bluetooth. I'm just starting out by attempting to connect my smartphone using the Advanced Bluetooth Server/Advanced Bluetooth Client example vis. I plugged in my Bluetooth dongle and the dongle appears to be working using Windows drivers. However, when I run Advanced Bluetooth Server, I get the following error:
Error 1 occurred at Bluetooth Create Listener in Advanced Bluetooth Server.vi
Possible reason(s):
LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488: Command requires GPIB Controller to be Controller-In-Charge.
I literally opened the VI and pressed run, so I have no idea what I could've done to change an input parameter. Any suggestions on what the issue could be?can you attach a screen shot so that we can look at the input parameters. Both the server and client. Thanks
Applications/Systems/Test
National Instruments | AWR Group -
JSP ERROR! Can't run "DATE"example
Hello All,
I am gettin a pretty simple error. I am trying to build and deploy the jwstutorial13\examples\web\date example. What happens is the it builds perfectly but when i install it says it is installed but when i go into the directory manager and try and run in..it is a stopped state!!! and says that it cannot find the context path!! does anyone know how to fix this problem!! Any help would be much appreciated.
Thanks In advance
markits stoped because the buil.properties file classpath is wrong
-
Seeking simple example pl/sql to create text file from table data
hello,
I am hoping someone can provide very simple example of creating a file on my local harddrive using a pl/sql program. The basic steps are as follows:
First, I store some text in a varchar2 variable like this:
1. select sometext into otextvar from mytable where recordid = 1;
Second, I want this text to become a file in my data directory:
2. c:\data\sometext.txt
The second step is where I need help.
Any suggestions are greatly appreciated.Use this function
It will create for you a file in your /home/oracle directory with sysdate name and will insert all table names in it
CREATE OR REPLACE PROCEDURE my_proc AS
CURSOR cursor1 IS
SELECT table_name from all_tables;
CURSOR cursor2 IS
SELECT sysdate from dual;
rec1 cursor1%ROWTYPE;
rec2 cursor2%ROWTYPE;
created_file_name VARCHAR2(100);
file_name utl_file.file_type;
BEGIN
OPEN cursor2;
LOOP
FETCH cursor2 INTO rec2;
EXIT WHEN cursor2%NOTFOUND;
created_file_name:=rec2.sysdate;
file_name := utl_file.fopen('/home/oracle', created_file_name,'W');
OPEN cursor1;
LOOP
FETCH cursor1 INTO rec1;
EXIT WHEN cursor1%NOTFOUND;
utl_file.putf(file_name, '%s\n',rec1.TABLE_NAME);
END LOOP;
utl_file.fclose(file_name);
END LOOP;
END my_proc;
SQL>exec my_proc; -
Simple example of alv report.
hi.
can anyone have simple example of ALV report?Hi Puru,
Check out this simple ALV report,
TABLES : vbak,vbap.
TYPE-POOLS : slis.
DATA: repid LIKE sy-repid, "Report ID
is_layout TYPE slis_layout_alv, "Layout For ALV
it_fieldcat TYPE slis_t_fieldcat_alv, "ITAB for field
it_events TYPE slis_t_event, "ITAB for event
it_sub TYPE slis_layout_alv_spec1, "subtotals
i_header TYPE slis_t_listheader, "Itab for listheader
lt_sort TYPE slis_t_sortinfo_alv, "itab for sorting
wa_sort LIKE LINE OF lt_sort." slis_t_sortinfo_alv.
DATA : BEGIN OF itab OCCURS 0,
vbeln LIKE vbak-vbeln,
erdat LIKE vbak-erdat,
kunag LIKE vbak-kunnr,
ernam LIKE vbak-ernam,
END OF itab.
DATA : BEGIN OF it_disp OCCURS 0,
vbeln LIKE vbak-vbeln,
erdat LIKE vbak-erdat,
kunag LIKE vbak-kunnr,
ernam LIKE vbak-ernam,
posnr LIKE vbap-posnr,
matnr LIKE vbap-matnr,
END OF it_disp.
****selection-screen
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS : s_vbeln FOR vbak-vbeln,
s_date FOR vbak-erdat.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN.
START-OF-SELECTION.
PERFORM get_data.
PERFORM modify_data.
PERFORM disp_data .
END-OF-SELECTION.
*& Form get_data
text
--> p1 text
<-- p2 text
FORM get_data .
SELECT avbeln aerdat akunnr aernam bposnr bmatnr
INTO TABLE it_disp FROM vbak AS a
INNER JOIN vbap AS b ON
avbeln = bvbeln
WHERE a~vbeln IN s_vbeln.
ENDFORM. " get_data
*& Form modify_data
text
--> p1 text
<-- p2 text
FORM modify_data .
MOVE-CORRESPONDING itab TO it_disp.
APPEND it_disp.
CLEAR it_disp.
ENDFORM. " modify_data
*& Form Disp_data
text
--> p1 text
<-- p2 text
FORM disp_data .
PERFORM fill_layout_structure.
PERFORM fill_field_catalog_table.
PERFORM alv_header USING i_header.
PERFORM call_alv_function.
ENDFORM. " Disp_data
*& Form fill_layout_structure
text
--> p1 text
<-- p2 text
FORM fill_layout_structure .
CLEAR is_layout.
is_layout-colwidth_optimize = 'X'.
is_layout-zebra = 'X'.
is_layout-no_input = 'X'.
is_layout-colwidth_optimize = 'X'.
is_layout-totals_text = 'Totals'(201).
is_layout-totals_only = 'X'.
is_layout-zebra = 'X'.
is_layout-group_change_edit = 'X'.
is_layout-header_text = 'helllllo'.
ENDFORM. " fill_layout_structure
*& Form fill_field_catalog_table
text
--> p1 text
<-- p2 text
FORM fill_field_catalog_table .
DATA : gls1(10).
BREAK-POINT.
PERFORM fill_field_catalog USING :
'VBELN' 'SALES DOC NO.' '10' 'IT_FINAL' space space 'C11' ' ' ' ',
'ERDAT' 'DATE' '40' 'IT_FINAL' space space 'C11' ' ' ' ',
'KUNAG' 'CUSTOMER' '6' 'IT_FINAL' space space 'C11' 'X ' ' ',
'ERNAM' 'NAME' '20' 'IT_FINAL' space space 'C11' 'X' ' ',
'POSNR' 'ITEM' '10' 'IT_FINAL' space space 'C11' ' ' ' ',
'MATNR' 'MATERIAL' '20' 'IT_FINAL' space space 'C11' ' ' ' '.
ENDFORM. " fill_field_catalog_table
*& Form fill_field_catalog
text
FORM fill_field_catalog USING f d l t s z y a b.
DATA t_fld TYPE slis_fieldcat_alv.
STATICS pos LIKE sy-index VALUE 0.
pos = pos + 1.
CLEAR t_fld.
MOVE 1 TO t_fld-row_pos.
MOVE pos TO t_fld-col_pos.
MOVE f TO t_fld-fieldname.
MOVE d TO t_fld-seltext_m.
MOVE l TO t_fld-outputlen.
MOVE t TO t_fld-tabname.
MOVE s TO t_fld-do_sum.
MOVE z TO t_fld-no_zero.
MOVE y TO t_fld-emphasize.
MOVE a TO t_fld-no_out.
MOVE b TO t_fld-no_sum.
APPEND t_fld TO it_fieldcat.
ENDFORM. " fill_field_catalog
*& Form alv_header
text
-->P_I_HEADER text
FORM alv_header USING p_i_header.
DATA: wa_line TYPE slis_listheader.
CLEAR wa_line.
wa_line-typ = 'H'.
wa_line-info = 'Walvoil Fluid Power India Limited'.
APPEND wa_line TO i_header.
ENDFORM. " alv_header
*& Form call_alv_function
text
--> p1 text
<-- p2 text
FORM call_alv_function .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = REPID
I_CALLBACK_PF_STATUS_SET = ' '
IS_LAYOUT = IS_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
TABLES
t_outtab = IT_DISP.
IF sy-subrc <> 0.
ENDIF.
ENDFORM. " call_alv_function
reward it it useful to u,
Best Wishes,
regards
Guna.. -
Can I run two applications at once from two different computers?
Good Evening,
I would like to use the cloud service. I have read over the FAQs and they were quite clear, however I did not seem to find something to the effect of what I need answered.
If I were to download the apps on a backup computer and my personal computer, can I run for example a photoshop application on one computer, while running an encore application on the other computer at the same time?
The FAQs state that I can pick and choose which apps I want on a computer. Will I be able to download a portion of the apps on my personal computer and the remaining on a backup computer, while being able to use a portion on computer and another portion on another computer at the same time?You could be working in two different applications on two different computers, going back and forth between them.
You can install any of the applications that you wanted to use on either of the computers but still only on two computers overall.
Hope that helps,
-Dave -
Trying to run simple servlet - error
I am the first time user of Beas Weblogic & I am trying to run simple example
servlets from Weblogic Console. However, when I try to LoadServlets, I get an
error 'Property Change Error for Property "Load"; Unable to load servlet'
Is there anything I am missing? I'd appreciate any help.
Thx.
Ravi
Hi,
I have found out the cause. im pointing to the wrong classpath. it should be class12.zip instead of class111.zip, something i copied from my server running oracle8i. -
Hi,
I'm new to Java and I have a question.
Is there any possible way a simple script like the below would work in a UNIX function called from a shell script. I know you're not supposed to do this but can you?
Thanks in advance,
javatst() {
$JAVA_HOME/bin/java <<- _java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
_java
javatst2894431 wrote:
You can run a java class from a shell script like below:
#!/bin/sh
exec /usr/bin/java -DsysParam1="var1_val" -DsysParam2="var2_val" -cp jar1:jar2:jar3 /home/unixUserName/javaClasses/Test.java
exit 0
No!
This is neither a valid answer to the OPs question (since your script does not create the content of Test.java) nor working.
The java executable can only run *.class files which contain byte code of the intermediate language generated by the javac executable.
Your suggestion leads to a ClassNotFound exception.
bye
TPD
Maybe you are looking for
-
Hi, I have to generate a report which contains a query with database link. This database link is not hard coded and would be picked up from another report which contans a link to this report. So this database link value for the query could be any. Ca
-
Trouble w/iPhone 3g and Mircosoft Exchange
Since I got my iPhone on July 11 I've been connected to my office Exchange server w/no problems. Last night, our company's IT department "upgraded" our server and since then my iPhone (and other iPhones) can't connect to the server...we keep getting
-
I am new to WCCP and I am having trouble getting the Sophos Web Appliance to Connect to a 6509e port channel. The Web app is on a VM host and the host is connected to the 6509 by two interfaces on a port channel. Here are the wccp parts of the config
-
How can we create character in COPA? Comapny has two warehouse in US and manufacturing in France?
-
Deployed software doesnt install
yesterday I deployed a software with the intune admin console on my server. I logged in to a workstation opened the windows intune center and checked for updates. It found the software that I had deployed earlier. The software installation doesn't pr