How TO Make my program executable?
please list steps to make my program executable jar ??
please write steps from 0 ot the end?
thank u
jar cvfm MyJar.jar MyManifest.txt -C . *.javawhere do you type that? I tried in a command console
but it didnt work...Make sure jar.exe is in your path.
and what do u mean by com.acme.MyMainClass? do I have to put the com.acme?No, you would replace it with the fully qualified name of your own class of course. You are allowed to use your own brains too.
Similar Messages
-
How to make Oracle program executed through windows XP command line.
I know this thread may not be appropriate to be posted here. However, I couldn't find place to post this question. However, the question is related to Oracle program execution. So I post here for help.
I creted a windows XP shell program to execute a few oracle program to refresh data on database. All oracle programs work very well. But the windows shell program is not working properly. I seek your input to solve this problem. Here is the basic windows shell script:
set oracle_sid=mydb
set MyDir=C:\refresh
sqlplus -s username_1/password_1@mydb @%MyDir%\updt_table.sql
exit
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_1.ctl
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_2.ctl
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_3.ctl
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_4.ctl
sqlldr username_2/password_2@mydb control=C:\refresh\control_file_5.ctl
set oracle_sid=mydb
set MyDir=C:\refresh
sqlplus -s username_2/password_2@mydb @%MyDir%\refresh_table.sql
exit
The problem is: The first sqlplus is to connect to username_1. after windows shell execute and finish updt_table.sql as well as exit from that db schema, it suppose to go to next sql loader command line to login as username_2 to start sql loader control file to load data. The actual situation is: command line hang on at first "exit" and didn't login username_2 to do sql loader work. Please advise me where the problem is and how to fix it. Thanks for your kind help.krystian:
I have tried this before I post for help. If I moved "exit" after updt_table.sql, the shell only finish the first part of command to update one table. Then windows shell hang on there and do nothing. It didn't go to login as username_2 to execute sql loader control files. This is where the problem is. How to force the windwos shell log into as username_2 to do next step? Thanks again. -
How to make my program forcefully errror
hi 2 all
how to make my program forcefully error out even i have to get data
regards
sivaHi Mate,
Just remove the quries which you execute
Thanks
Kash
www.mkashu.blogspot.com -
Hello
How to make labview program to get average value of 200 reading from multimeter (I using using loop) to read voltage from mulmeter but I like to get average value of all of 200 reding how can I do that?
Thanks
Wee
Solved!
Go to Solution.Another idea with less programming - take advantage of the "free" array that comes with a Chart - i.e. the History Data.
1) Wire your DMM data to a Chart. (You can set the chart to invisible if you don't plan on using it in the GUI).
2) Set the Chart History Length to 200 (right click on the chart, click on Chart History Length...)
3) On the block diagram, use the History Data Property Node, wire it to Mean.vi, and you're done.
Easiest running average ever.
Message Edited by Broken Arrow on 04-07-2010 11:36 AM
Richard
Attachments:
EasyAvg.jpg 8 KB -
How to make a program for backgroung processing used servlet
how to make a program for backgroung processing used servlet
well i need the coding part written in servlet ,in which servlet is always ready for accepting a client request.
-
How to make my program case - in sensitive?
Hi,
Iam writing a SELECT query in report for retrieving the address number by giving address details like street, city and post code.But my program is case sensitive such that if the user inputs either in Upper Case or Lower Case, it will not work.
For eg: suppose the city is Cape Town. If the user inputs like CAPE TOWN or cape town ( via Selection Screen ), then it won't work.
How can i make my program case- in sensitive?? please suggest..This is possible. I have done something similar to it in my search programs.
For this we need to make a subroutine. In this subroutine we first need to convert the case into upper case using
TRANSLATE string TO UPPER CASE.
then prefix and postfix this string with &,
_and if this does not work then we have to break the srting entered by the user on basis of spaces and prefix and postfix it with &. _
Now pass this string to the query and it will definitely get the result. -
How to make my program faster?
I have a program which produces two elements array. In normally the program ends in microseconds, however when I organize my program to send the array as a data to DAQ.mx write and the array will be the voltage output from my NI USB-6012 DAQ, my program ens in 40 seconds. How can I make my program faster? Is there any solution?
I have attached the normal program and with DAQ.vis.
Attachments:
step step 1.vi 15 KB
step step 2.vi 34 KBProgram 1 runs 5 times and program 2 runs 41 times per loop. the total number of inner iterations is 25 vs. 1681 for a 67x difference.
Program 1 and program 2 have no timing information, thus spin at a undefined rate.
Program 2 does single point hardware IO and also has no timing information. The speed will depend on the hardware.
Running at a hardware dependent rate is not a good idea in general, because the speed will vary with every change in hardware and is not deterministic. You don't even know what occurs first at each iteration: the input or the output.
If speed is important, what you should do is use an improved variation (Yes, use FOR loops and ramps!) of program 1 to generate the final data array, then do a single "Nchan,Nsamp" IO, running input and output synchronized hardware timed off the same clock. This way you can select any acquisition speed up the the maximum supported by your DAQ hardware. It will be fast and at an exactly defined rate as it should be!
Try it!
I am not familiar with your hardware: USB-6012. can you give a link to the product page?
LabVIEW Champion . Do more with less code and in less time . -
Help on how to make a program on Calendar of the year
I'm new to java programming.
Our teacher assigned me to make a program for a calendar of the year.
I'm confused on what to do. Could you give me some tips on how to
make a successful calendar of the year program?
What shall I study first to create an output like this....?
The program should run like this!!!!
Enter the year from 1990 to year 2050.
Enter the month of the year entered.
Then displays the calendar.
Ex.
SEPTEMBER 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Hoping that you would reply.
Thank you very much!!!Don't want to do your homework. You should think about how you might do it yourself first.
However, the class java.util.Calendar will be useful to you. Read up on that in the API docs. -
How to make a program for rebooting linux kernal
i'am using fedora core 2. i want to make a program for rebooting the kernal locally.
nkay, how about:
sudo reboot -
How to make a program restart at the click of the mouse or a key on....
How would I make a program restart at the click of the mouse or a key on the keyboard?
Yes, definitely, thats what I would want to happen but I'm not sure how to go about the coding. Would I have to use a key listener? Or would I have to construct the method from scratch?
-
How to make rman to execute remaining cmds in file when one cmd failed
Hi All,
I have couple of commands to execute in a file, meanwhile if one command fails with error then rman terminates and did not executing remaining commands in file. How can I make rman to execute remaining commands even when one command failed with errors.
Thanks and Regards,
Sandeep.Write a shell script for Linux or batch for Windows. For example;
ORACLE_HOME=/oracle/ora11g
ORACLE_SID=TEST
TMPDIR=/tmp
TMPLOG=${TMPDIR}/RMANtmplog.$$
$ORACLE_HOME/bin/rman log=$TMPLOG << EOF1
connect target /
run
crosscheck backup of database ;
exit
EOF1
RESULT=$?
if [ $RESULT -ne "0" ]; then
echo "FAILED RMAN crosschek command"
else
$ORACLE_HOME/bin/rman log=$TMPLOG << EOF2
connect target /
run
delete noprompt expired backup of database ;
exit
EOF2
fi
Talip Hakan Ozturk
http://taliphakanozturken.wordpress.com/ -
I want to make a program that will ask for the ID of the testing machine the first time the program is running, then will never ask for it. I'm using Labview 6.0
Hi
There are a Couple of methods you can use for this.
Method 1 -
You can create an ini file and save a boolean Key "First Instance" as True. Now In your Program you read this Key, If it is True then you can show your ID Dialog VI.If False do not run the VI. At the Conclusion of Id Dialog you can update this registry enrty to False. So In effect you have created One time Event. In fact you can save ID as another Config entry.
The Drawback and advantage is that such an INI file can be edited by someone moderately knowledgeable about the Program
Method 2
Use Unitialized Shift Register in A while Loop. Please see LV2 style Globals entry under this forum. You can read and write to this Variable and it retains the Value it last had within it.
You can read
this Global the Very first time and say if it true you display your ID Vi. If False you dont. When you display your ID Vi you can Update your Global Like Before.
If you need Example Let me Know.
Good Luck
Mache!!
Good Luck!
Mache -
How to make this program terminate?
hi,
how to make the code below stop? is is hanging because UnicastRemoteObject has registered it, and no-one has unregistered it?
thanks,
asjf
import java.rmi.*;
import java.rmi.server.*;
public class UniTest extends UnicastRemoteObject implements Remote {
UniTest() throws RemoteException {}
public static void main(String [] arg) throws Exception {
UniTest ut = new UniTest();
}having done some tests it possibly seems linked to the size of the environment
my system is a win2k machine, with sdk 1.4.1_02 from sun
if I run
java UniTest
then that terminates, but if I first run a batch file containing this
set FILL0=aaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnoooooppppp
set FILL1=bbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaa
set FILL2=cccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbb
set FILL3=dddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbccccc
set FILL4=eeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccddddd
set FILL5=fffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeee
set FILL6=ggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffff
set FILL7=hhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggg
set FILL8=iiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhh
set FILL9=jjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiii
set FILL0=kkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjj
set FILLa=lllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkk
then it doesn't?
any help would be really appreciated?
asjf -
Confusion on how to make array program
I have been taking a Java class at school for a couple months and am a bit unsure about how to go about completing a particular assignment. No text book that I found could really make me understand. I am trying to make a simple applet that tests for a username and password. My teacher tried it and also couldn't do it. Here is what we have so far. Any input on how to make the array portion work would be appreciated greatly:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class PasswordApplet extends Applet implements ActionListener
//Declaring variables
String id, password;
boolean success;
String idArray[] = {"aaron","kevin"};
String passwordArray[] = {"shs", "bears"};
//Create components for applet
Label headerLabel = new Label("Please type your ID and Password");
Label idLabel = new Label("ID: ");
TextField idField = new TextField(8);
Label passwordLabel = new Label("Password: ");
TextField passwordField = new TextField(8);
Button loginButton = new Button("Login");
public void init()
//Set color, layout, and add components
setBackground(Color.orange);
setLayout(new FlowLayout(FlowLayout.LEFT,50,30));
add(headerLabel);
add(idLabel);
add(idField);
idField.requestFocus();
add(passwordLabel);
add(passwordField);
passwordField.setEchoChar('*');
add(loginButton);
loginButton.addActionListener(this);
public void actionPerformed(ActionEvent e)
success = false;
id = idField.getText();
password = passwordField.getText();
//Sequential search
int i = 0;
while( i<idArray.length)
if(id.compareTo(idArray)==0)
if (password.compareTo(passwordArray[i])==0)
success = true;
i = i+1;
if (success = false)
headerLabel.setText("Unsuccessful. Try Again");
idField.setText("");
passwordField.setText("");
idField.requestFocus();
else
headerLabel.setText("Login successful");
repaint();I have been taking a Java class at school for a
couple months and am a bit unsure about how to go
about completing a particular assignment. No text
book that I found could really make me understand.
sigh
am trying to make a simple applet that tests for a
username and password. Okay.
My teacher tried it and also
couldn't do it. Why? What is the point in telling us this? Your teacher is an idiot? Good for you.
Here is what we have so far. Any
input on how to make the array portion work would beWhat specific problem are you having? Tell us that. It doesn't work is meaningless.
Do you have an error? Does it compile? Which specific line of code does not do what you expect? -
Help, how to make a program type in a command in command prompt?
I've got a small code that only works if you type in something like this (assume that the .java file is smallcode.java):
c:\>java smallcode filename.dcm
on the other hand, in my main program I have a if else ladder that I want to fit in this code, when my file chooser choose the file type .dcm, I want it to execute the command above, how can I do it?1. Not sure if your file is an absolute path name,
like "c:\files\file.dcm". If it's not, then it has to
be in the same directory as where your running
picviewer from. I always use the absolute path just
to be safe.you know what, you just point out how stupid I am, the path is relative, it depends on where the user surf into, I get the directory like this:
FileDialog fd = new FileDialog(this, "Select Directory", 0);
String directory = fd.getDirectory();
String fileName = fd.getfileName();
>
2. Your command string is wrong, try:
String cmd = ("cmd /c d:\\java
project\\picviewer\\test\\java DicomViewer " +
"\""+file+"\"");You are missing a space between DicomViewer and the
file name. Also, to make sure that it doesn't parse
the file name, put it in quotes (like I have done
above).I see, I'll modify the code and come back in couple minutes.
thanks
Maybe you are looking for
-
I need help can i find out what device request a password reset.
I dont check my email very often and when i did i had a email from apple saying how do i rest my password. they sent it to me on 8/15/13 at 2:30pm. also i went to my icloud account and noticed i only have 1 ipod and my sons iphone registered. i did h
-
How to delete CHEAP IMPOSTOR in the print menu?
How can I delete the CHEAP IMPOSTOR option in the print options menu? Thanks Benrhard
-
TS1591 If I am unable to restore my IPad, what next?
The battery on my IPad dropped quickly to 1% from 5% AFTER I had put it on charge - it then flicked betwen my password screen and the Apple logo. I left it overnight and by morning I had the 'connect to ITunes to restore' symbols and message - I con
-
How can one turn off auto-correct on safari?
How can one turn off auto-correct on safari?
-
Trying to install firefox for first time. Computer asks "what program do I want to open with". I have tried a few guesses, but nothing works. What program do I need to open with? Thanks