Hai Frindz,
Iam using jdk1.5 in linux OS,I want to list the serial ports in my system, I used port name /dev/ttyS0 (for com1) in my program,but it gives CommPortIdentifier not Found Error.
is there any Packages or file to install in jdk?
Hai Frindz,
Iam using jdk1.5 in linux OS,I want to list the serial ports in my system, I used port name /dev/ttyS0 (for com1) in my program,but it gives CommPortIdentifier not Found Error.
is there any Packages or file to install in jdk?
thanks i got it.
Hi Guys..,
Where can i find this particular package javax.media.*;
and is there any specific link there to download the javax packages...?
If so kindly help me out...
Thanks in advance..
Vinod
What is mean by precasting in java can any one give me simple example please...
hi everyone
i have a very a very basic question in mind .. i wanted to discuss ..
Difference Between these?
String s1= new String("java") ;
String s2="java" ;
and also
what for 2 different classes are there in garbage collection?
System.gc and runtime.gc ( both are doing the same job)
what is their individual role?
please anyone explain me....
execJAVA currently am using this exe converter from jar file.
but its trial version only.
you can download this from www.JavaAPIs.com
anyway you have to convert your application in to jar format.
If you want to create Exe means you have to go for third party tool.
you can create jar for your project
you have to make manifest file
Manifest-Version: 1.0
Specification-Title: Java Utility Classes
Created-By: 1.5.0 (Sun Microsystems Inc.)
Main-Class: maninclassname
save it as manifest.mf keep this file in current project folder.
and go to project location then type in command prompt:
jar cmf manifest.mf anyname.jar *.*
press enter then you will get your jar file created.
if you have better way more than this means please show your solutions also. it will be really useful
(for adding zero)
class doubconv
{
public static void main(String args[])
{
String code="00000000001";
int leng=code.length();
int cnt=0;
for(int j=0;j<leng;j++)
{
char c=code.charAt(j);
if(c=='0')
{
cnt++;
}
else
{
break;
}
System.out.println(cnt);
}
String si="";
for (int k=0;k<cnt ;k++ )
{
si=si+"0";
}
double dbl=Double.parseDouble(code);
double dbl1=dbl+1;
String result=si+dbl1+"";
System.out.println(result);
}
}
Have this as example.......
class doubconv
{
public static void main(String args[])
{
String code="00000000001";
double dbl=Double.parseDouble(code);
double dbl1=dbl+1;
String result=dbl1+"";
System.out.println(result);
}
}
first better way... is try to run programs in command prompt thats is the best way to start a learning step for java
install jdk 1.5 or latest 1.6
then set your class path
compile it
javac programname.java
and run
java programname
you will get the output in the command prompt console itself
I dont think you can use hyperlink in windows application
its only for web application
Just download J2ME wireless toolkit 2.5 for developing mobile application.... it is very nice IDE provided by Sun.
you will be having demo projects inside the toolkit.. just go through all those surely you will be getting a good idea about developing new Mobile application.
All the Very Best...
^
Is very friendly kind of.... and cool.
and simply if you type java -help means you will get list of items for help
in that itself it contains the java -version
from that you can get to know about the version that you are using.
a very good thought presenter
Farmer John was taking his cow and its new born calf to sell in the auction.
On the way farmer John got robbed by thieves, who beat him up, stripped him of his clothes and tied him to a tree.
Then taking the mother cow and John's clothes, the thieves escaped.
They however left the new born calf behind.
Poor farmer John suffered as for two days, he stood tied to a tree, stark naked and hungry.
Fortunately, on the third day, some neighbors happened to pass by.
They recognized John and untied him.
When they did, farmer John picked up a huge stick and started bashing the calf with it.
"Why are you thrashing the poor calf? His neighbors asked?
To which farmer John replied…
"I have been telling this beast for the past two days repeatedly - I am not your mother! I am not your mother...I'm not your mother...!"
you are new to this game. they have altered the rules already.
Arjun is the kind of person who is having good gaming & puzzle solving talent.....and Very good friend of mine!!
pay -> $
Hi buddies.,
Try to solve this!
for that you have to get the rowcount value for that particular table and then keep that value in that place of int row_to_display =
i dont know the exact method for getting row count value..
just search in google for getting Rowcount value... i think it may be getRowCount()
hi sunitha its no need to make new thread like this you could have added this code in your previous thread itself.... so you can get continuity for your problem solving.
int row_to_display = 200 ;
FPSProdMap[] oProdMap= dbFpsProdMap.getProdMap(sLang,1,200);
change that value 200 to your number of records like if it is 1000 means change it in to 1000
provide your code so it will be easy to solve the problem
@Nice car@
I really love
committed -> betrothal
capably
love -> couple
able
please make your query clear.. so that we can help you in right way....
or else provide your code.... we will help you to solve the problem
you have to convert your application in to executable jar file..
for that you have to follow some procedure
you have to create manifest file
in that manifest file you have to mention your main class name like below.
Manifest-Version: 1.0
Specification-Title: Java Utility Classes
Created-By: 1.5.0 (Sun Microsystems Inc.)
Main-Class: mainclassname
and save it as manifest.mf and keep this file in project location.
and then you have to run the following command in DOS prompt
(go to projetlocation via command prompt)
jar cmf manifest.mf filename.jar *.*
then you will get your executable jar file
01101000 01110100 01110100 01110000 00111010 00101111 00101111 01110111 01110111 01110111 00101110 01101000 01101111 01101100 01101100 01111001 01100001 01110100 01101000 01101111 01101101 01100101 00101110 01101110 01100101 01110100 00101111 01000011 01100001 01100101 01110011 01100001 01110010 01000011 01101001 01110000 01101000 01100101 01110010 00101110 01101000 01110100 01101101 00100110 00100011 00110110 00110101 00110101 00110011 00110011 00111011 00111011
00111011
00111011 00111011 00111011 00111011
00111011
00111011 00111011 00111011 00111011
00111011
00111011
00111011
00111011
yea thanks i will try that first..
Go back to reply number 1.
i dont have any idea about server socket thats why looking for alternate solution....
here is my code...
try {
// Get a file channel for the file
File file = new File("filename");
FileChannel channel = new RandomAccessFile(file, "rw").getChannel();
// Use the file channel to create a lock on the file.
// This method blocks until it can retrieve the lock.
FileLock lock = channel.lock();
// Try acquiring the lock without blocking. This method returns
// null or throws an exception if the file is already locked.
try {
lock = channel.tryLock();
} catch (OverlappingFileLockException e) {
// File is already locked in this thread or virtual machine
}
// Release the lock
lock.release();
// Close the file
channel.close();
} catch (Exception e) {
}
Glad it works for you. Keep in mind the points jwenting mentioned though. I don't think you will have those issues with the code I pasted, but testing is your best friend.
Be sure you release the lock and close the channel when you no longer need them:
lock.release(); lockChannel.close(); lockFile.delete();
yea i have used all these... but if i rename the jar file means its worthless... its again opening multiple instances
2569
Aconitum
actor -> Films
Masonite
Thanks alot Ezzaral
this file lock concept working fine.
thanks alot...you made my work ease by your idea.
ironic