How to run .jar on linux & how to create .jar file using java?
hi, may i know how to run .jar on linux & how to create .jar file using java? Can u provide the steps on doing it.
thanks in advance.
Look at the manual page for jar:
# man jar
Also you can run them by doing:
# java -jar Prog.jar
Similar Messages
-
How do i search for a string in a txt file using java??
How do i search for a string in a txt file using java??
could you please help thanks
JRegular expressinos work just fine, especially when
searching for patterns. But they seem to be impying
it's a specific group of characters they're looking
for, and indexOf() is much faster than a regex.If he's reading from a file, the I/O time will likely swamp any performance hit that regex introduces. I think contains() (or indexOf() if he's not on 5.0 yet) is preferable to regex just because it's simpler. (And in the case of contains(), the name makes for a very clear, direct mapping between your intent and the code that realizes it.) -
How to Write in MS Word's plate to a file using java I/O classes?
hi,
are there any ways that can write text files in the form of certain pattern plate of MS Word?hi,
are there any ways that can write text files in the
form of certain pattern plate of MS Word?What about your duke dollars? -
HOW TO run SAPGUI into LINUX
Hi all,
I make this document for people who need install SAPGUI into Linux.
1)
Minimal system requeriments.
Linux
Hardware:
CPU: Intel PentiumIII with 800 MHz
RAM: 256MB
Software:
OS: SuSE Linux 9.3 - 10.1, Red Hat Enterprise Linux 3 and 4
JVM: Sun Java Runtime Evironment 1.4.2 (32-bit) or 5.0 (32-bit) including Java Plugin
please see http://java.sun.com/j2se/1.4.2/install-linux.html and http://java.sun.com/j2se/1.4.2/docs/...ocale.doc.html resp. http://java.sun.com/j2se/1.5.0/install-linux.html and http://java.sun.com/j2se/1.5.0/docs/...ocale.doc.html for details
2)
Download SAPGUI from:
ftp://ftp.sap.com/pub/sapgui/java/
(anonymous login)
https://websmp201.sap-ag.de/sapgui-java
(OSS user and pass)
3)
At /java folder in ftp select:
File: PlatinGUI-Linux-700.jar 37926 KB 11/07/06 13:58:00
(note: maybe a new version is available)
4)
At downloaded folder, execute
java -jar PlatinGUI-Linux-700.jar
5) Executing SAPGUI
A) Guilogon:
~/SAPClients/SAPGUI7.00/bin$ ./guilogon
To create servers, touch at new and go to "advanced".
-- tip use expert configuration
Example:
For server 10.1.1.6 with system number 01:
conn=/H/10.1.1.6/S/3201
B) Command line
For server 10.1.1.6 with system number 01:
~/SAPClients/SAPGUI7.00/bin$ ./sapgui /H/10.1.1.6/S/3201
Hope it helps, Goodbye!Hi,
I'm trying to use the SAPgui for Java on Ubuntu 6.06 and I have problems with that. The SAPgui connects to the SAP system problemless.
After couple of minutes the SAPgui for Java always hangs with these messages in terminal:
ERROR #############################
17.08. 11:13:01.700 ERROR: JniAgComAdaptor.write failed
ERROR #############################
ERROR #############################
17.08. 11:13:01.714 ERROR: GuiNiWriter: write failed
ERROR #############################
I'm connecting to SAP Netweaver 04 running on the same computer. I have also tried different versions of Java 1.4, 1.5 and the problem still persists.
From other computers in network the SAPgui for Java runs perfectly against the same SAP system, running on the same Java version as before, on Ubuntu 6.06 or Fedora Core 5 whatever, it runs without any hassles.
I haven't found any remarks on this error on Google, neither on SAP OSS.
Do you think I can raise a question to OSS? I don't think there are some restrictions for SAPGUI for Java regarding use of Linux distribution. -
How to run script file ( unix script file like ksh or sh file) using Java
How to run script file ( unix script file like ksh or sh file) using Java Program?.
I am using the following code snippet to run the simple commands like top or ls ,etc....
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec("top");
Thanks In Adavance
-SivaString [] { "ksh" , "-c" , "script", "arg 1", "arg 2", "arg 3"}
-
How to read pdf files using java.io package classes
Dear All,
I have a certain requirement that i should read and write PDF files at runtime. With normal java file IO reading is not working. Can any one suggest me how to proceed probably with sample code block
Thanks in advance.hi I also have the pbm. to read pdf file using JAVA
can any body help meWhy is it so difficult to read the thread you posted in? They say: java.io is pointless, use iText. So why don't you?
or also I want to read a binary encoded data into
ascii,
can anybody give me a hint how to do it.Depends on what you mean with "binary encoding". ASCII's binary encoding, too, basically. -
How to print a text file using Java
How can I print a text file using Java without converting the output to an image format. Is there anyway I can send the characters in the text file as it is for a print job? I did get a listing doing this ... but that converted the text to an image format before printing....
THanks,.Hi I had to write a print api from scratch, and I did not convert the output to image. Go and read up on the following code. I know there is a Tutorial on Sun about the differant sections of the snippet.
private void printReport()
Frame tempFrame = new Frame(getName());
PrintJob printerJob = Toolkit.getDefaultToolkit().getPrintJob(tempFrame, "Liesltext", null);
Graphics g = printerJob.getGraphics();
//I wrote the method below for calculations
printBasics(g);
g.dispose();
printerJob.end();
}This alone wont print it you have to do all the calculations in the printBasics method. And as I said I wrote this from scratch and all I did was research first the tutorial and the white papers
Ciao -
How to read the data from Excel file and Store in XML file using java
Hi All,
I got a problem with Excel file.
My problem is how to read the data from Excel file and Store in XML file using java excel api.
For getting the data from Excel file what are all the steps i need to follow to get the correct result.
Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
Thanks & Regards,
Sreenu,
[email protected],
india,If you want someone to do your work, please have the courtesy to provide payment.
http://www.rentacoder.com -
How to print/list all the groups/users present in Weblogic using Java code
Hi,
Weblogic version : 11.1.1.5
How to print/list all the groups/users present in Weblogic using Java code
I want to make a remote connection to Weblogic server and print all the users/groups present in it.
I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
Thanks in advance,
Edited by: 984107 on 05-Feb-2013 05:26
Edited by: 984107 on 05-Feb-2013 22:59see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
Hope this helps. -
How to create a table in the file using java code.?
HI,
I should export the data from the view objects to a word document. I have done that but I should
display the data in the form of a table.
Kindly come up with the necessary information on how to create a table in the file using java.
Thanks,
PhaniHi, Thank you for responding to my query.
The below are the details of my code.
DCBindingContainer dcBindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding StudentDetailsContent =
(DCIteratorBinding)dcBindings.get("StudentView1Iterator");
OutputStreamWriter w = new OutputStreamWriter(outputStream, "UTF-8");
Row currentRow =
StudentDetailsContent.getRowSetIterator().first();
Object a[]= currentRow.getAttributeValues();
int i;
for(i=0 ;i<=a.length;i++){
w.write(a.toString());
w.write(" ");
w.flush();
I am usning this coding to achieve the task of exporting data to file.
I need to display this information in the table that is where I need help from you people.
Thanks, -
How to read a tab seperated data from a text file using utl_file
Hi,
How to read a tab seperated data from a text file using utl_file...
I know if we use UTL_FILE.get_line we can read the whole line...but i need to read the tab separated value separately.....
Thanks in advance...
NaveenNaveen Nishad wrote:
How to read a tab seperated data from a text file using utl_file...
I know if we use UTL_FILE.get_line we can read the whole line...but i need to read the tab separated value separately.....If it's a text file then UTL_FILE will only allow you to read it a line at a time. It is then up to you to split that string up (search for split string on this forum for methods) into it's individual components.
If the text file contains a standard structure on each line, i.e. it is a fixed delimited structure, then you could use external tables to read the data instead. -
How to get the password of a password protected Excel Sheet using java/jxl
Hi ,
how to get the password of a password protected Excel Sheet using java / jxl program.
plz any one help me .
Ramesh P
[email protected]If they've implemented the password system correctly there probably isn't a way of getting the password at all.
-
How to convert a HTML files into a text file using Java
Hi guys...!
I was wondering if there is a way to convert a HTML file into a text file using java programing language. Likewise I would also like to know if there is a way to convert any type of file (excel, power point, and word) into text using java.
By the way, I really appreciated the help that you guys gave me on my previous topic on how to extract tests from a pdf file.
Thank you....HTML files are already text files. What do you mean you want to convert them?
I think if you search the web, you can find things for converting those MS Office files to text (or extracting text from them, as I assume you mean). -
How to read a text file using Java
Guys,
Good day!
Please help me how to read a text file using Java and create/convert that text file into XML.
Thanks and God Bless.
Regards,
I-Talkpublic void fileRead(){
File aFile =new File("myFile.txt");
BufferedReader input = null;
try {
input = new BufferedReader( new FileReader(aFile) );
String line = null;
while (( line = input.readLine()) != null){
catch (FileNotFoundException ex) {
ex.printStackTrace();
catch (IOException ex){
ex.printStackTrace();
}This code is to read a text file. But there is no such thing that will convert your text file to xml file. You have to have a defined XML format. Then you can read your data from text files and insert them inside your xml text. Or you may like to read xml tags from text files and insert your own data. The file format of .txt and .xml is far too different.
cheers
Mohammed Jubaer Arif. -
How to insert text in the middle of an existing textfile using java
Hi,
How to insert text in the middle of an existing textfile using java i/o streams??Mickie wrote:
I shudn't delete the file...Then you will have the old file and the new file - do you want that?
and I have to insert text not only at a single place ....got to do at many places in the text file!!then extrapolate on the procedure outlined in reply #1 .
Maybe you are looking for
-
How do I keep watermarks and presets ( with their order ) synched between computers
I have a desktop which I use for heavy picture editing and a mac book air that I use for on the fly picture editing to show clients during photo trips. I want to figure out a way for keeping my watermarks and presets ( with their order and folders I
-
How to pass the values from the Wb Dynpro Application to the SAP Backend ?
Hi All, Good morning.., I have scenario like: I want to pass the values from the web dynpro appication to the SAP Back end R/3 Table. IN backend the RFC is writtn to accept the structure input from the Webdynpro. Upto know I imported the correspondin
-
G4 Powerbook running on Mac OS 10.4.11
Hi there! I have an old G4 Powerbook (currently using an Macbook Pro) that I thought I could pass on to my kid to watch Youtube, play games, etc. But it's running at a really awful snail's pace now (can hardly watch any Youtube videos even) and I'm w
-
Hi friends, could you plz tellme how to create web reports, plz send me screen shots my mail id <removed> Venkat.Marneni
-
Help, with a solution ..
Storage says it is full, although I have iCloud acct. paid in full.