Is there any way of replacing a backslash with a frontslash ?
I have a major problem here.
I used an installer to install my product to the respective folder. But the thing is the installer uses a backslash instead of a frontslash.
As a result, my java program is unable to process it.
Is there anyway of replacing the backslash with a frontslash ??
Thank you in advance.
Well this is probably not the best way but it will work:
import java.io.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
public class MyApp
public static void main(String args[])
try
Properties props=new Properties();
BufferedReader in=new BufferedReader(
new InputStreamReader(
new FileInputStream("props.txt")));
String file="";
StringBuffer temp=new StringBuffer();
while((file=in.readLine())!=null)
temp.append(file);
temp.append("\n");
file=temp.toString();
ByteArrayInputStream reader=new ByteArrayInputStream(
file.replace('\\', '/').getBytes());
props.load(reader);
props.list(System.out);
catch(Exception e)
}
Similar Messages
-
Is there any way to replace the bright white background in Ibooks back to the original bookshelf or at the very least tone down the glare ?
Babowa is correct; there is no way to restore the arrows. If you want to step up and down a list, try the keyboard's arrow keys.
Regards. -
Ipod touch 2g - updated to 3g by itunes
My ipod touch has bad battery power, is there any way to replace the battery .
Also it cant install most of the apps , so I was wondering if apple will replace my ipod touch 2g for another ipod touch better gen .Apple will only give you a 10% recycling discount if you turn in an old iPod when you purchase a new one.
Apple - Recycling Program for iPod and Mobile Phones
Apple will exchange your iPod for a refurbished one with a new battery for $79. May not be worth it for the old 2G. They do not fix yours.
Apple - iPod Repair price
A third-party place like the following will replace the battery for less. Google for more.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
Replace the battery yourself if you are up to it. Yo can purchases a replacement battery for about $10
iPod Touch Repair – iFixit -
i lost my appletv remote & can no longer connect to it with my iphone app. is there any way that i can reconnect with my iphone app without having to buy a new remote?
Doubtful - why did the Remote app lose connection?
-
i have bought a used macbook, to bad i do not have the admin password. is there any way to bypass this issue with out the Mac OS X disk? (without loosing my obtained files?) I NEED HELP BADLY PLEASE....
What version of the Mac OS X are you running. Go to the Apple in the upper left corner and select About This Mac and post the version.
-
Is there any way to link page number with the reference page number within text in InDesign CC and CS6?
You should ask in InDesign
The Cloud forum is not about using individual programs
The Cloud forum is about the Cloud as a delivery & install process
If you will start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll -
HT1391 iphone5 is solen is there any way we can trace it with serial numer
iphone5 is stoel is there any way we can trace it with yhe serial number
That is not possible.
If Find My iPhone was enabled on the device prior to it being lost, simply sign into iCloud.com and see if it can be tracked. If the phone is turned off, the SIM card is removed, or it otherwise is unable to connect to the Internet, the Find My iPhone feature will be unavailable. -
Is there any way to restore data truncated with TRUNCATE query in Oracle9i
Hi, Is there any way to restore data truncated with TRUNCATE query in Oracle9i DB...
Thanks in advance...Hi,
you can flash back DML queries like insert, update
but it is not possible for some DDL like truncate, alter, and and drop columns etc that change structure of table.
e.g.
SQL> select * from t2;
C1
3
SQL> select dbms_flashback.get_system_change_number from dual;
GET_SYSTEM_CHANGE_NUMBER
496378
SQL> truncate table t2;
Table truncated.
SQL> select * from t2 as of scn(496378);
select * from t2 as of scn(496378)
ERROR at line 1:
ORA-01466: unable to read data - table definition has changed
Andrey -
Is there any way to integrate IBM ClearCase with Jdeveloper?
Hi All,
Is there any way to integrate IBM ClearCase with Jdeveloper,
If possible please provide the steps or any related posts.
Regards
Santosh MahajanThen you need to install clearcase extension in your JDev.
1. Download the zip file from
http://download.oracle.com/otn-pub/jdeveloper/11.1.1.4.0/extensions/vcs-clearcase_bundle.zip
2. Follow the instruction from the below link to install the extension.
http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/131167.xml
3. Restart your JDev and you are set to go.
-Arun -
Is there any way to control an iPod with a lock via USB cable?
I have an iPod touch 4th generation, but I dropped it. The touchscreen no longer works, which is most likely a hardware error (I've tried resetting it). I plan to get a new device, but before that, I would like to be able to unlock it to access certain files and transfer codes inside. I know the lock password to my iPod; is there any way I could control it with my computer?
Thanks.You may be able to get some info from the restored/erased iPod by:
How to perform iPad recovery for photos, videos
Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official
http://www.amacsoft.com/ipod-data-recovery.html
iPod recovery software to restore lost music files
http://www.pcrecoverytools.com/ipod-data-recovery.html
-iPod touch Deleted Photo Recovery Tips You Should Know -
Is there any way to start weblogic server with java 7?
Hi. Is there any way to start weblogic server with jdk 1.7?
Hi,
You can start your Weblogic Server with java 7(JDK 1.7)
Go to Domain_home/bin and click on StartWeblogic.cmd it will start your Admin Server
It depends on which JDK you have used while creating domain if you have selected Jdk 1.7 it will use the same to start the server
See the Ex:
================
starting weblogic with Java version:
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
Starting WLS with line:
C:\PROGRA~1\Java\JDK17~1.0_5\bin\java -client -Xms256m -Xmx512m -XX:CompileThr
eshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -
Djava.security.policy=H:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy
-Xverify:none -Xverify:none -da -Dplatform.home=H:\Oracle\MIDDLE~1\WLSERV~1.3 -
Dwls.home=H:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=H:\Oracle\MIDDLE~
1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -
Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=H:\Oracle\MIDDLE
~1\patch_wls1036\profiles\default\sysext_manifest_classpath weblogic.Server
<Mar 3, 2015 1:08:32 PM PST> <Info> <Security> <BEA-090905> <Disabling CryptoJ J
CE Provider self-integrity check for better startup performance. To enable this
check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Mar 3, 2015 1:08:33 PM PST> <Info> <Security> <BEA-090906> <Changing the defaul
t Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable
this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<Mar 3, 2015 1:08:33 PM PST> <Info> <WebLogicServer> <BEA-000377> <Starting WebL
ogic Server with Java HotSpot(TM) 64-Bit Server VM Version 24.51-b03 from Oracle
Corporation>
=======================================
If you are using a Lower version of JDK and want to upgrade to JKD 1.7 you can do so by changing setDomainEnv.sh in Weblogic
Have a look at the below link to do so
The Weblogic Wasp: change java version / JDK of a weblogic domain
http://www.baigzeeshan.com/2012/05/how-to-change-jdk-used-by-weblogic.html
Hope it helps -
HT4623 I have iPhone 4S GSM , is there any way to make it works with CDMA SIM card ?
I have iPhone 4S GSM , is there any way to make it works with CDMA SIM card ?
No.
-
i just bought a new laptop because my old one died. is there any way to sync my phone with the new machine and not lose all my data?
Copy everything from your backup copy of your old computer to your new one.
Then sync. -
Is there any way to convert to MPEG1 with any adobe product?
Is there any way to convert to MPEG1 with any adobe product?
This forum is actually about the Cloud, not about using individual programs
Once your program downloads and installs with no errors, you need the program forum
If you start at the Forums Index http://forums.adobe.com/index.jspa
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
Since you have all current products, you might check the forums for Media Encoder or Premiere Pro
http://forums.adobe.com/community/ame
http://forums.adobe.com/community/premiere -
is there any way to get ichat back with mountain lion? also is there a way to have multi-person video chats with messages?
There is no way that I know of to install iChat because it is not supported in ML. You may want to read a couple of these Threads
https://discussions.apple.com/thread/4143616?start=0&tstart=0
https://discussions.apple.com/thread/4151787?start=0&tstart=0
Maybe you are looking for
-
URGENT - HANDLING SOUNDS IN JWS
Hi I am done an application with runs fine in Java Web start. I have used some sound files in that which playing using JMF. I have jared all the sound files and which downloading properly in client machine. But i am getting the following Exception wh
-
Ive bought items for upgrades on warriors 2 and they wont down load onto the game. approx 2 weeks has gone by and still it wont upload onto the game. Any Ideas what I can do to either get the upgrades or me money back?
-
Firefox will not connect to my hotel start page
Firefox was working perfectly when I left one hotel, when I checked into the next hotel it would not open the hotel startpage. I've tried Explorer and Chrome and they aren't working either. I have also tried changing the proxy settings as well with n
-
Creating "bookmarks" for most used functions?
Is there a way to create a home page "bookmark" for functions you use a lot, such as turning WiFi On and Off? Or alternatively, does anyone know of an app that would allow you to do that? It would be extremely handy and would save us from having to c
-
Common Beans Faces Config (File Location)
If you have a project with multiple JHeadstart App Definitions, what is the consequence of setting the 'Common Beans Faces Config' to a diffrent location for each App Def? e.g./WEB-INF/<subsystem>/JhsCommon-beans.xml Inside web.xml, javax.faces.CONFI