db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Seromenho <a23...@ualg.pt>
Subject RE: Question about Embedded Derby
Date Thu, 27 Mar 2008 19:15:26 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<span>PerfectReign has posted the message above and I am with the same
problem.<br>
<br>
The question is: <br>
What should be the Database URL ?<br>
like this:<br>
C:\\SOMEWHERE\\<br>
or<br>
C\:\\SOMEWHERE\\<br>
or<br>
C:/SOMEWHERE/<br>
<br>
?<br>
<br>
Thanks<br>
<br>
<br>
<br>
----------------<br>
<br>
<br>
</span>
<h2><a name="a15192640">Question about Embedded Derby</a></h2>
<a title="Click to flag this post" id="nabble.aflag15192640"
 href="javascript: void Nabble.setFlag(15192640);"><img
 alt="Click to flag this post" id="nabble.flag15192640"
 src="cid:part1.02070304.01000701@ualg.pt"
 onmouseover="status = alt; return true;"
 onmouseout="status = defaultStatus; return true;" border="0"
 height="15" width="15"></a><!-- /Subject --><!-- Message Actions --><span
 id="nabble.rating15192640">
<script>document.write(Nabble.ratingStars(4));</script><img
 src="cid:part2.08020204.06080608@ualg.pt" border="0" height="12"
 width="12"><img src="cid:part2.08020204.06080608@ualg.pt" border="0"
 height="12" width="12"><img src="cid:part2.08020204.06080608@ualg.pt"
 border="0" height="12" width="12"><img
 src="cid:part2.08020204.06080608@ualg.pt" border="0" height="12"
 width="12"></span>
<p class="message-actions1">
by
<script>document.write('<a href=\"' +'/user/UserProfile' + '.jtp?'+'user=123271\"
rel=\"nofollow\" ' + Nabble.embeddedTarget('_top') + '>');</script><a
 href="http://www.nabble.com/user/UserProfile.jtp?user=123271"
 rel="nofollow" target="_top">PerfectReign
<script>document.write('</a>');</script></a><span class="weak-color">
<script>document.write(Nabble.formatDateLong(new Date(1201728800000)));</script>Jan
30, 2008; 09:33pm</span> ::
Rate this Message:
<a
 href="http://www.nabble.com/Question-about-Embedded-Derby-td15192640.html#"
 title="Click to mark as Spam"
 onmouseover="Nabble.mouseover(15192640,0); return true;"
 onmouseout="Nabble.mouseout(15192640); return true;"
 onclick="Nabble.clicked(15192640,0); return false;"><img
 src="cid:part6.02080801.00040602@ualg.pt" id="nabble.spam15192640"
 alt="" style="vertical-align: middle;" border="0" height="12"
 width="12"></a><a
 href="http://www.nabble.com/Question-about-Embedded-Derby-td15192640.html#"
 title="Click to rate as Poor Post"
 onmouseover="Nabble.mouseover(15192640,1); return true;"
 onmouseout="Nabble.mouseout(15192640); return true;"
 onclick="Nabble.clicked(15192640,1); return false;"><img
 src="cid:part7.04090704.08000102@ualg.pt" id="nabble.star15192640-1"
 alt="" style="vertical-align: middle;" border="0" height="12"
 width="12"></a><a
 href="http://www.nabble.com/Question-about-Embedded-Derby-td15192640.html#"
 title="Click to rate as Below Average Post"
 onmouseover="Nabble.mouseover(15192640,2); return true;"
 onmouseout="Nabble.mouseout(15192640); return true;"
 onclick="Nabble.clicked(15192640,2); return false;"><img
 src="cid:part7.04090704.08000102@ualg.pt" id="nabble.star15192640-2"
 alt="" style="vertical-align: middle;" border="0" height="12"
 width="12"></a><a
 href="http://www.nabble.com/Question-about-Embedded-Derby-td15192640.html#"
 title="Click to rate as Average Post"
 onmouseover="Nabble.mouseover(15192640,3); return true;"
 onmouseout="Nabble.mouseout(15192640); return true;"
 onclick="Nabble.clicked(15192640,3); return false;"><img
 src="cid:part7.04090704.08000102@ualg.pt" id="nabble.star15192640-3"
 alt="" style="vertical-align: middle;" border="0" height="12"
 width="12"></a><a
 href="http://www.nabble.com/Question-about-Embedded-Derby-td15192640.html#"
 title="Click to rate as Above Average Post"
 onmouseover="Nabble.mouseover(15192640,4); return true;"
 onmouseout="Nabble.mouseout(15192640); return true;"
 onclick="Nabble.clicked(15192640,4); return false;"><img
 src="cid:part7.04090704.08000102@ualg.pt" id="nabble.star15192640-4"
 alt="" style="vertical-align: middle;" border="0" height="12"
 width="12"></a><a
 href="http://www.nabble.com/Question-about-Embedded-Derby-td15192640.html#"
 title="Click to rate as Excellent Post"
 onmouseover="Nabble.mouseover(15192640,5); return true;"
 onmouseout="Nabble.mouseout(15192640); return true;"
 onclick="Nabble.clicked(15192640,5); return false;"><img
 src="cid:part7.04090704.08000102@ualg.pt" id="nabble.star15192640-5"
 alt="" style="vertical-align: middle;" border="0" height="12"
 width="12"></a>
<a
 href="http://www.nabble.com/Question-about-Embedded-Derby-td15192640.html#"
 title="Click to clear rating"
 onmouseover="Nabble.mouseover(15192640,-1); return true;"
 onmouseout="Nabble.mouseout(15192640); return true;"
 onclick="Nabble.clicked(15192640,-1); return false;"><img
 id="nabble.star15192640-0" alt=""
 src="cid:part12.05010508.09090108@ualg.pt"
 style="vertical-align: middle;" border="0"></a><span
 id="nabble.descriptor15192640">- Use ratings to moderate (<a
 title="Click for more info"
 href="http://www.nabble.com/help/Answer.jtp?id=16">?</a>)</span>
</p>
<br>
<span>I have successfully completed the "Building a <b
 class="highlight">Java</b> Desktop Datbase
</span><br>
<span>Application" tutorial at:
</span><br>
<a href="http://www.netbeans.org/kb/60/java/gui-db.html" target="_top"
 rel="nofollow"><span>http://www.<b class="highlight">netbeans</b>.org/kb/60/<b
 class="highlight">java</b>/gui-<b class="highlight">db</b>.html</span></a><br>
<br>
<span>Very nice work!
</span><br>
<br>
<br>
<span>I am now trying to do the same thing only using an Embedded Derby
</span><br>
<span>database.
</span><br>
<br>
<span>I am able to create the database (using ij) and then connect to
it.
</span><br>
<span>However, when I go to run the app, I get an error in my
</span><br>
<span>CarsAppView.<b class="highlight">java</b> file.
</span><br>
<br>
<span>It is at this line (in grey):
</span><br>
<br>
<span>entityManager =
</span><br>
<span><b class="highlight">javax</b>.persistence.Persistence.createEntityManagerFactory("jdbc:derby:C:\projects\embeddedCar\CARSDBPU").createEntityManager();
</span><br>
<br>
<br>
<span>The error message states: "<b class="highlight">illegal</b> <b
 class="highlight">escape</b> <b class="highlight">character</b>" at
each of the
</span><br>
<span>three backslashes.
</span><br>
<br>
<span>Since this is non-editable, what can be done?
</span><br>
<pre class="moz-signature" cols="72">-- 
========================================================
Ricardo Jos&eacute; da Silva Seromenho                         
Aluno 23842  Universidade do Algarve, Campus de Gambelas
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:a23842@ualg.pt">a23842@ualg.pt</a>
web: <a class="moz-txt-link-freetext" href="http://www.deei.fct.ualg.pt/~a23842/">http://www.deei.fct.ualg.pt/~a23842/</a></pre>
</body>
</html>

Mime
View raw message