473,382 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

how to debug the following error

while compiling a java code...
i get the following error....
prj.java:424: Ilegal Escape character..
String s1="C:\WINDOWS\Desktop\Swing help\a1.htm";


please can anyone tel me how to correct this error....

Thankx in advance.....
Sep 14 '07 #1
4 1216
madhoriya22
252 100+
while compiling a java code...
i get the following error....
prj.java:424: Ilegal Escape character..
String s1="C:\WINDOWS\Desktop\Swing help\a1.htm";


please can anyone tel me how to correct this error....

Thankx in advance.....
Hi,
Change the backward slash(\) to forward slash(/) and you problem will be solved.
Sep 14 '07 #2
thanks a lot......friend....
Sep 14 '07 #3
while compiling a java code...
i get the following error....
prj.java:424: Ilegal Escape character..
String s1="C:\WINDOWS\Desktop\Swing help\a1.htm";


please can anyone tel me how to correct this error....

Thankx in advance.....

Hi Sindhu Sweet,

Obviuosly you will get the compilation Error, to resolve this you need to give the path as String s1="C:\\WINDOWS\\Desktop\\Swing help\\a1.htm"; or else you have to give the path as String s1="C:/WINDOWS/Desktop/Swing help/a1.htm";

Cheers,
Sateesh.
Sep 14 '07 #4
madhoriya22
252 100+
thanks a lot......friend....
Hi,
You're welcome ofcourse.
Sep 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: David++ | last post by:
Hi there, I have built a DLL in Visual C++ 6. When I build the DLL it builds fine for the debug version of the DLL (and this DLL works fine), however, I seem unable to build a Release version of...
4
by: Stephen Miller | last post by:
Hi, I am running v1.1.4322 on Win2K server and unable to debug a ASP.Net application running locally, using a full URL (ie www.mysite.com). When I hit F5, I get the following error message: ...
4
by: Angel | last post by:
I am trying to debug a simple asp.net project using Visual Studio.net(2002) and receive the following error: Error while tring to run project. Unable to start debugging on the web server....
10
by: Scott | last post by:
I have a simple asp.net app which works fine in debug mode, but crashes on the following line when I run it on the production server: Dim dt As DataTable I have tried the following variations...
1
by: mike2036 | last post by:
I have a very strange problem trying to link the debug version of my caller application with one of my DLL's using .NET 2K5. The linker declares the following error (one of many): error...
6
by: Scubadude | last post by:
Hi, I'm new to perl and have run into some roadblocks while trying to run tutorials. I have installed Apache v2.2.3 I have installed ActivePerl v6.6.1.638 I have installed php v5.2.0 I am...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
3
by: rorni | last post by:
Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of...
2
by: darrel | last post by:
Quick background: Our department reveived new PCs a few weeks ago. Alas, due to new security policies, we weren't immediately set up as admins of our own machines, so most of us developers had...
1
by: mazdotnet | last post by:
Hi all, I've installed the new Microsoft URL Rewrite Module for IIS 7.0 http://www.iis.net/downloads/default.aspx?tabid=34&i=1691&g=6 on both my laptop (Vista Home Premium) and my desktop...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.