Hi All,
In my java application, i need to search a string (Eg: "Hello") in the list of files in the source directory and i need to copy all the files that matches the search text and copy all those files into another destination directory.
Problem:
In my source directory i have lot more number of files , probably 10,000+. I am not sure , whether iterating the files and searching the string using...
User Profile
Collapse
Profile Sidebar
Collapse
gaya3
Last Activity: Oct 12 '12, 10:04 AM
Joined: Aug 10 '07
Location:
-
Best way to search a text in the file and copy the file
-
Copy files from samba share
Hi All,
I would like to have the simple java code that copy the files from samba share to local drive.
When i tried with below snippet , file not found exception occured. Please do needful
Code:try{ String source = "//IP.VV.YY.XXX//test//mm"; File sourceFile = new File(source); FileInputStream stream = new FileInputStream(sourceFile); System.out.println("\n\n
-
Thanks for your reply. I tried a sample sql to tune in Database Tuning Advisor. But whenever i start the analysis after loading the workload file, i got error while submitting configuration information. Only then i came to know that, to use the Database engine tuning advisor we require the Database Admin rights, which would not be available for developers. Could you share any tools that can be used by developers to tune the SQL queries? -
Code review tools for SQL 2005
Hi All,
Is there any free SQL code review tools to check the quality of the SQL code and to improve the performance? -
Not able to display the unicode characters using Sitemesh decorators
Hi,
Our application uses Spring MVC Framework and also it use sitemesh decorators to decorate the page.I have a problem in displaying the unicode characters in my application along with the decorator.
If i exclude the decorator, am able to display the unicode characters, but it should not be the solution. our application has to support the Japanese and chinese characters.
I have tried all the... -
NSIS installer script for detecting JRE
Hi All,
Is there a script available for the Nullsoft Installer (NSIS) that can detect whether or not a JRE is already installed? I want to show a message
dialog in case the user does not have a JRE installed.
Thanks in Advance -
one - jar Unable to locate com.simontuffs.onejar.Boot in the java.class.path:
Hi All,
In my project, am creating the application jar using one-jar. And am able to run the jar with java -jar Example.jar and its working fine. When i try to run from jnlp its throwing the below Exception. i dont have any clue.
Code:java.lang.IllegalArgumentException: Unable to locate com.simontuffs.onejar.Boot in the java.class.path: consider using -Done-jar.jar.path to specify the one-jar filename. at com.simontuffs.onejar.Boot.getMyJarPath(Boot.java:400)
-
Accessing java Control panel properties in java
Hi all, Is it possible to access the java control panel properties in java program. I need to get the "Temporary Internet files " Location programatically . -
Accessing derby inside the jar
Hi,
For our swing application we are using derby database. Since its desktoop application, we are providing the application as jar to the clients. But issue is in finding the database. Derby database url is not recognised inside the jar.
we have the entry as jdbc:derby:src\ DerbyDSLS001
we also tried as jdbc:derby:jar: (C:/Test.jar)src/DerbyDSLS001 ==> Its working fine. The bottleneck in this is jar need to... -
-
Hi ,
I tried as follows
Runtime.getRunt ime().exec("run dll32 url.dll,FilePro tocolHandler http://www.google.com" );
am able to open the google page.. where as when i tried to open a pdf file .. it is not able to do so..
Runtime.getRunt ime().exec("run dll32 url.dll,FilePro tocolHandler C:/pdf/test.pdf");
Do any one faced this issue? Please help me out.Leave a comment:
-
-
Thanks.. but Desktop api are supported only fron java 1.6 rt?.. i need to implement the above functionality in java 1.5 versionLeave a comment:
-
Thanks. Could you please brief your first solution.. And any other solutions.Leave a comment:
-
How to Open PDF file in Java Swings
Hi All,
I am very much new to java Swings I need to open the PDF file from Swings application..
I tried as follows...
Runtime r= Runtime.getRunt ime();
Process p = r.exec("C:/Program Files/Adobe/Reader 8.0/Reader/AcroRd32.exe Test.Pdf");
it got work.. But is ter any other solution.. because am hard coding the path of the exe file in the above code....
pl help... -
Hi ,
Its not college assignment or something else. we are doing POC for our project & more over am new to .NET & IIS. can any one help me please..Leave a comment:
-
Video streaming
Hi All,
can anyone please say me
1. what is video streaming?
2. smooth streaming
3. How video streaming is done in IIS to integrate with iphone
4. version of IIS that supports video streaming for integration of iphone?
Please help me out. -
Silverlight mobile integration
Hi All,
I have created the sample "Helloworld " application using silverlight 3.0. But how to integrate this same apllication with mobile? can anyone help me out.. -
Apple iPhone development information
Hi All,
am new to the mobile development..ca n anyone suggest me the links for Apple iphone sdk for good startup. -
Joslin,
you can also have the following sample
Code:<script type="text/javascript"> // Changes the cursor to an hourglass function cursor_wait() { document.body.style.cursor = 'wait'; } // Returns the cursor to the default pointer function cursor_clear() { document.body.style.cursor = 'default'; } // Does some arduous calculation
Leave a comment:
No activity results to display
Show More
Leave a comment: