| looking for an open source java charting library |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- FW: Check out these security packageYet another moron blindly passing on false email messages trying to
find people STUPID enough to fall for them. I'll say it again and type
slowly so it sinks in:
M i c r o s o f t d o e s n o t s e n d o u t e m a i l s o r a
t t a c h m e n t s a b o u t s e c u r i t y u p d a t e s!!!
People that fall for this crap without even checking it out deserve
every viral infection they get!
On Wed, 29 Dec 2004 21:16:45 GMT, "Eileen & John" <email***@***.com>
wrote:
>MS Partner
>
>this is the latest version of security update, the
>"December 2004, Cumulative Patch" update which eliminates
>all known security vulnerabilities affecting
>MS Internet Explorer, MS Outlook and MS Outlook Express.
>Install now to help protect your computer
>from these vulnerabilities, the most serious of which could
>allow an malicious user to run code on your system.
>This update includes the functionality of all previously released patches.
>
>
>Microsoft Product Support Services and Knowledge Base articles can be found on the Microsoft Technical Support web site.
>http://support.microsoft.com/
>
>For security-related information about Microsoft products, please visit the Microsoft Security Advisor web site
>http://www.microsoft.com/security/
>
>Thank you for using Microsoft products.
>
>Please do not reply to this message.
>It was sent from an unmonitored e-mail address and we are unable to respond to any replies.
>
>----------------------------------------------
>The names of the actual companies and products mentioned herein are the trademarks of their respective owners.
>Copyright 2004 Microsoft Corporation.
- 2
- Thread.run() = static or PircBot != thread safe?Hi there,
After messing about with a few programs I'm now getting into IRC. Because a few
programs which I used for quite some time now stopped working and because I
became unhappy with some eggdrop options (and lack off) and suspect it to be
leaking memory I decided to write up something myself.
One of the main functions of this bot will be performing tutorial sessions. At
the moment this consists of reading an ascii file which defines what text has
to be send into the channel. All of this is working decently well (tested with
System.out.println();).
Because the bot still needs to respond to commands I decided to use a seperate
class for the tutorial session so I could use a seperate thread. The idea was
to start a thread which runs the tutorial while the bot still does whatever it
usually does.
To my pleasure my first approach on threading worked quite nicely. My class
extended Thread, setup a run() method to define the actual routine to perform.
In this method I try to send a message to the irc channel the bot is on.
However, this routine is giving me some errors when I try to compile this:
./irctutorial.java:47: non-static method sendMessage \
(java.lang.String,java.lang.String) cannot be referenced from a static context
PircBot.sendMessage(channel, tutline.substring(tutline.indexOf(' ')+1) \
trim());
^
1 error
The method which is mentioned here is Thread.run() and to my knowledge this
method isn't static at all:
---( irctutorial.java - note; lines have been cut using \ )---
public class irctutorial extends Thread {
...
public void run() {
String tutline;
int i = 0, pause = 0;
File tutorial = new File("/home/peter/tutorial.txt");
try {
LineNumberReader tutreader = new LineNumberReader \
(new FileReader(tutorial)); do {
tutline = tutreader.readLine();
pause = Integer.decode(tutline.substring(0,tutline.indexOf(' ')));
Thread.currentThread().sleep(pause*1000);
PircBot.sendMessage(channel, tutline.substring(tutline.indexOf(' ')+1) \
.trim());
tutreader.setLineNumber(i++);
} while (tutline != null);
---[ CUT ]---
The error occurs with PircBot.sendMessage() and this I don't understand at all.
When looking at the PircBot API documentation
(http://www.jibble.org/javadocs/pircbot/index.html) you can see that the
'sendMessage' method isn't static either. The method is of:
public final void sendMessage(String target,
String message)
While the class itself is:
public abstract class PircBot
extends Object
implements ReplyConstants
I'm rather new when it comes to using threads and as such a bit confused. Is
this happening because Thread.run() is indeed static or could this be an issue
with the PircBot API ?
Thanks in advance for any input you can give me.
--
Groetjes, Peter
.\\ PGP/GPG key: http://www.catslair.org/pubkey.asc
- 2
- Problem with GridLayoutHi everybody, I'm having a problem with the layout of my application.
When I run the following code, I only see one graph in the frame. I'm
sopposed to see "graphNum" graphs in a row.
This part of code runs when I press the "draw graph" button:
public void run() {
Graph[] graphs = new Graph[graphNum];
JFrame frame = new JFrame();
for(int i=0; i<graphNum; i++){
graphs[i] = new Graph();
SliceVal[] sliceValA = new SliceVal[sliceNum];
for(int j=0;j<sliceNum;j++){
sliceValA[j] = new SliceVal(new BigDecimal(10.0),
colors[j]);
}
graphs[i].setSliceVal(sliceValA);
}
JPanel grafPanel = new JPanel();
graphPanel.setLayout(new GridLayout(1,graphNum));
for (int i=0; i<graphNum; i++) {
grafPanel.add(graphs[i]);
}
frame.getContentPane().add(graphPanel);
frame.setSize(300, 200);
frame.setVisible(true);
}
}
SliceVal class holds the value and color of a slice of the pie chart.
Graph class extends JComponent and has a paint() function in it.
I set the values of slices to 10.0 for simplifying the code
Do you see an error in the code above?
I would appreciate any help, thank you.
- 3
- JNDI issue: XDoclet + WAS 5.1.1Hello all,
I'm having issues trying to deploy an application on WAS 5.1.1. The app
runs fine on BEA and JBoss servers, but throwing the following naming
exceptions on WebSphere:
javax.naming.NameNotFoundException: Context:
<SERVER_PATH>/servers/server1, name: ejb/TestManagerLocal: First
component in name TestManagerLocal not found. Root exception is
org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
The bean task for which the reference exception is being thrown looks
as follows in ejb-jar.xml:
<session >
<description><![CDATA[TransformationEngine]]></description>
<display-name>TestEngine</display-name>
<ejb-name>TestEngine</ejb-name>
<home>com.interfaces.TestEngineHome</home>
<remote>com.interfaces.TestEngine</remote>
<local-home>com.interfaces.TestEngineLocalHome</local-home>
<local>com.interfaces.TestEngineLocal</local>
<ejb-class>com.ejb.TestEngineSession</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref >
<ejb-ref-name>ejb/TestManagerLocal</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.interfaces.TestManagerLocalHome</local-home>
<local>com.interfaces.TestManagerLocal</local>
<ejb-link>TestManager</ejb-link>
</ejb-local-ref>
</session>
Also, I am using XDoclet to generate all the mappings and interfaces.
For WAS, it generates ibm-ejb-jar-bnd.xmi, and it has the following
binding:
<ejbBindings
xmi:id="Session_bnd_1"
jndiName="ejb/test/TestEngine">
<ejbRefBindings xmi:id="EJBRefBnd_1"
jndiName="ejb/TestManagerLocal">
<bindingEjbRef href="META-INF/ejb-jar.xml#EJBLocalRef_1"/>
</ejbRefBindings>
<enterpriseBean
xmi:type="ejb:Session"
href="META-INF/ejb-jar.xml#Session_TestEngine" />
</ejbBindings>
Now I'm not sure whether WAS is picking up the binding from ejb-jar.xml
or ibm-ejb-jar-bnd.xmi, but it appears correctly on the admin interface
under EJB Bindings. Everything looks okay, but it appears as if
TestEngine is not able to find TestManager using JNDI lookup. The
XDoclet tags look as follows:
* @ejb.bean name="TestEngine"
* display-name="TestEngine"
* description="TestEngine"
* jndi-name="ejb/test/TestEngine"
* local-jndi-name="ejb/test/TestEngineLocal"
* type="Stateless"
* view-type="both"
* @ejb.util generate="physical"
* @ejb.ejb-ref ejb-name="TestManager"
* view-type = "local"
* ref-name = "ejb/TestManagerLocal"
* @oc4j.bean jndi-name="ejb/test/TestEngine"
Can someone come up with any ideas as I'm totally stuck? Any help will
be appreciated.
Thanks.
- 3
- Java Mobile agentsI will appreciate if someone can ans the following questios:
1. Are there any good books or resources (apart from google) that can help
me get a jump start on this.
2. What is the most pospular mobile agent technology that is preferred by
developers (aglets?)
Thanks
Shank
--
Regards
Shashank
http://mia.ece.uic.edu/~papers
- 3
- A+++++ Designer Replica Christian Dior Handbags & PursesA+++++ Designer Replica Christian Dior Handbags & Purses
Designer Replica Christian Dior Handbags & Purses At:
http://www.sales-luxury.org/christian_dior.html
Replica Christian Dior Handbags & Purses Item:
Dior Lovely Bag Black - Small Handbags At:
http://www.sales-luxury.org/christian_dior_purses_282.html
Dior Bag with 2 Pockets Small - Black Handbags At:
http://www.sales-luxury.org/christian_dior_purses_283.html
Dior Lovely Bag Beige - Large Handbags At:
http://www.sales-luxury.org/christian_dior_purses_284.html
Dior Lovely Bag White - Large Handbags At:
http://www.sales-luxury.org/christian_dior_purses_285.html
Dior Lovely Bag White - Medium Handbags At:
http://www.sales-luxury.org/christian_dior_purses_286.html
Lady Dior Bag - White Handbags At: http://www.sales-luxury.org/christian_dior_purses_287.html
CD - Cannage Drawstring Medium Shoulder Bag Black Handbags At:
http://www.sales-luxury.org/christian_dior_purses_288.html
CD - Brown Gaucho Small Saddle Bag Handbags At:
http://www.sales-luxury.org/christian_dior_purses_289.html
CD - Black Gaucho Small Saddle Bag Handbags At:
http://www.sales-luxury.org/christian_dior_purses_290.html
......
Sale-luxury prides itself on offering some of the best replica purses
available anywhere. This is why we offer some of the finest replica
handbags that are exact copies of purses from Chanel and Fendi. One of
our newest lines is our exquisite line of Christian Dior replica
handbags. Like our amazingly accurate line of replica Louis Vuitton
purses our CD replica purses are of the highest quality in replica
accessories. While you are shopping around for replica purses, be sure
to take a look at our exceptional Marc Jacobs replica bags as well as
our full line of Chanel replica handbags at amazingly low prices.
http://www.sales-luxury.org/
- 4
- bloking operation in a threadHi !
I have a poblem with threads : I program multi-threaded applications for a
short time.
I would know how it would be possible to stop a thread which is running a
bloking operation (such i/o functions, server accept(), ...). My app is
waiting indefinitely for the thread to die and that's normal. so how to
stop this thread ?
- 4
- Eclipse - White space causing all text files to show up as having conflictsWhen we do a CVS synchornization in Eclipse, the Java files work well,
but ALL (dozens) of text
files show up as having conflicts, apparently because white space is
NOT being ignored. When
we ignore white space on a file by file basis, the conflicts disappear.
But we have not been
able to ignore white space globally, so we have to go through our
dozens of text files one by one, which
is very tedious and time consuming.
How do we GLOBALLY avoid white space characters causing text files
looking like they have
conflicts when doing an Eclipse CVS synchronize.
- 5
- JNI: COM event sinks in a DLLhello,
I have created an Event-Sink class in C++ to handle COM-Events and it
works well in a MFC-application.
But if I create a DLL to use this Event-Sink-Class with the JNI then
the callback function of the event-sink is not called. The COM-Server
tells me that it is "overloaded" when it fires the event. It seems to
me that it "hangs" somehow in the JVM.
here some pseudo code:
in Java:
class Test {
public static native void nativeFunction();
public static void main(...) {
nativeFunction();
//during sleeping I fire the "event"
Thread.sleep(30000);
}
}
in the DLL:
class EventSink : public IDispatch
{
...
HRESULT __stdcall Invoke(...) {
//just exit application
exit(0);
return S_OK;
}
...
};
JNIEXPORT void JNICALL ...nativeFunction(...)
{
//initialize COM
CoInitializeEx(NULL, COINIT_MULTITHREADED);
//create COM object with CoCreateInstance(...)
//get IConnectionPointContainer of the object
//get IConnectionPoint* connectionPoint
//advise sink to connectionPoint
EventSink* sink = new EventSink();
connectionPoint->advise(sink, &cookie);
...
}
what is wrong in the code?
thanks in advance!
Arthur
- 8
- Bounce offI am trying to have a bouncing ball that (as you can probably tell
from the name), bounces off of the walls. I only want the top and
bottom walls to bounce, but the code I am using does not work.
private void detectTopOrBottom(){
if (location.x <= 1 || location.x >= (width - 1)){
dx = -dx;}
if (location.y <= 1 || location.y >= (height - 1)){
dy = -dy;}}
- 9
- 12
- Accelerators in one frame being activated from anotherHi.
I have a program that uses multiple top-level frames. One of the frames
is the "main" one and contains a menu bar and tool bar. The menu items
in the main frame have accelerators. I want the actions associated with
these menu items to be activated even if the accelerator is pressed when
one of the other top-level frames has the focus.
Is there an easy way or accepted idiom to do this?
Thanks,
Cameron
--
e-mail : cam (at) mcc.id.au icq : 26955922
web : http://mcc.id.au/ msn : cam-msn (at) aka.mcc.id.au
office : +61399055779 jabber : heycam (at) jabber.org
- 13
- OnLoad kicking off processGood Morning,
A friend of mine asked me a question the other day and I am fairly stumped.
Is there a way to use the onLoad function to kick off a process on the
server while the page is being painted? Want to send a message to a servlet
and then send the form to the servlet once the user has filled in the
values.
I did some webapp stuff a while back and we used the onload function to help
the page paint a little easier, I wondered if we could use it to send a
message, or if there was something in JSP or HTML that I overlooked.
Thanks,
M@
- 13
- Getting Help -- Forums/Tutorials/Tips+Tricks/Blogs/ETC.Hey, I have a site dedicated to helping people:
http://www.wizardsolutionsusa.com
There you can find about any resource to help you through your
homework or personal studies.
Remember, it doesn't take but 60 seconds to sign up at the forum and
ask your questions.
- 16
- in my applet I can't get the stop() and the start() to fireI cannot seem to see when the stop() and start() methnods fire when using
this applet. I thought when the focus moved away from IE6, the stop would
fire and then when it got the focus again the start() would fire. Is that
not the case?
Any ideas on what I could be doing wrong? Thank you.
--------------code
snippet----------------------------------------------------------
package com.pch.webapp;
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Toolkit;
public class ScrollingMessage extends Applet implements Runnable{
String message;
private int dx;
private int dy;
private boolean isStandalone = false;
private boolean running;
private Thread worker;
private int x = 25;
private int y = 25;
public ScrollingMessage(){
}
public static void main( String[] args ){
ScrollingMessage applet = new ScrollingMessage();
applet.isStandalone = true;
Frame frame;
frame = new Frame();
frame.setTitle( "Applet Frame" );
frame.add( applet, BorderLayout.CENTER );
applet.init();
applet.start();
frame.setSize( 400, 320 );
Dimension d = Toolkit.getDefaultToolkit()
.getScreenSize();
frame.setLocation(
( d.width - frame.getSize().width ) / 2,
( d.height - frame.getSize().height ) / 2
);
frame.setVisible( true );
}
// Destroy the applet
public void destroy(){
System.err.println( "destroy" );
worker = null;
}
// Get Applet information
public String getAppletInfo(){
System.err.println( "getAppletInfo" );
return "Applet Information";
}
public int getDx(){
return dx;
}
public int getDy(){
return dy;
}
public String getMessage(){
return message;
}
// Get a parameter value
public String getParameter( String key, String def ){
return isStandalone ? System.getProperty( key, def )
: ( ( getParameter( key ) != null ) ? getParameter( key ) :
def );
}
// Get parameter info
public String[][] getParameterInfo(){
System.err.println( "getParameterInfo" );
String[][] pinfo = {{"aMessage", "String", ""}
, };
return pinfo;
}
public int getX(){
return x;
}
public int getY(){
return y;
}
// Initialize the applet
public void init(){
System.err.println( "init" );
try{
message = this.getParameter( "aMessage", "There's no place like
127.0.0.1." );
} catch( Exception e ){
e.printStackTrace();
}
try{
jbInit();
} catch( Exception e ){
e.printStackTrace();
}
}
public void paint( Graphics g ){
System.err.println( "painting" );
g.drawString( this.getMessage(), getX(), getY() );
}
public void run(){
while( isRunning() ){
setX( getX() + 1 );
setDx( getDx() );
this.repaint();
try{
System.err.println( "\tabout to sleep" );
worker.sleep( 250 );
} catch( InterruptedException ex ){
ex.printStackTrace();
}
}
System.err.println( "done" );
}
public void setDx( int dx ){
this.dx = dx;
}
public void setDy( int dy ){
this.dy = dy;
}
public void setX( int x ){
this.x = x;
}
public void setY( int y ){
this.y = y;
}
// Start the applet
public void start(){
System.err.println( "start" );
if( worker == null ){
worker = new Thread( this );
}
setRunning( true );
worker.start();
}
// Stop the applet
public void stop(){
System.err.println( "stop" );
if( worker != null ){
setRunning( false );
}
}
private boolean isRunning(){
return running;
}
// Component initialization
private void jbInit() throws Exception{
}
private synchronized void setRunning( boolean running ){
this.running = running;
}
}
|
| Author |
Message |
Shanmuhanathan T

|
Posted: 2005-10-5 2:02:00 |
Top |
java-programmer, looking for an open source java charting library
Hi All,
I am evaluating open source java charting libraries for use
in one of my projects. I would need both browser based
and applet based implementation.
JFreeCharts seems to fit the bill.
http://jfree.org
Can the community help me identify if there is any better
java charting library out there?
Thanks in Advance,
Shanmu.
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2005-10-5 2:58:00 |
Top |
java-programmer >> looking for an open source java charting library
"Shanmuhanathan T" <email***@***.com> wrote in message
news:ZHz0f.39$email***@***.com...
> Hi All,
> I am evaluating open source java charting libraries for use
> in one of my projects. I would need both browser based
> and applet based implementation.
> JFreeCharts seems to fit the bill.
> http://jfree.org
> Can the community help me identify if there is any better
> java charting library out there?
I've used JFreeChart for personal projects, and I'm fairly satisfied
with it. Only problem is you have to pay for access to documentation.
- Oliver
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Graphics for ChessAppletHi Dears
I am developing chess game written as an JavaApplet.
Using Borland JBuilder 9 Personal Edition.
I use the following Code
void this_mouseDragged(MouseEvent e)
{
}
class Chess_this_mouseMotionAdapter extends
java.awt.event.MouseMotionAdapter
{
Chess adaptee ;
Chess_this_mouseMotionAdapter ( Chess adaptee )
{
this.adaptee = adaptee ;
}
public void mouseDragged ( MouseEvent e )
{
adaptee.this_mouseDragged ( e ) ;
}
}
But it seems that it still fire when the mouse button is released.
The Applet are on the following URL
http://w1.201.telia.com/~u20100003/Chess.html
Verry Thankfull for Tips or Advice.
Sincerely
Urban Avierfj?
Gotland, Sweden
- 2
- Earth to Sun: When will Java support closures now?Vitaly Lugovsky <email***@***.com> writes:
> No. It was added to make source files more readable.
How can something be more readable when anything in effect can be
replaced by a macro? You are perhaps focusing on #include and the
like; but the following is bad:
/* In some header file included somewhere while resolving
a source file */
#define foo fie
/* In the source file - will end up as fie()*/
int foo() {
}
To quote Wikipedia: "The use of preprocessors has been getting less
common as recent languages provide more abstract features rather than
lexical-oriented ones. Indeed, the overuse of the proprecessor might
yield quite chaotic code. In designing a new language based on C,
Stroustrup introduced features such as inline and templates into C++
in an attempt to make the C preprocessor less relevant."
> > Yes, again because they avoid strong typing.
>
> How?
Because the template has no idea whether the type parameter actually
supports the operations used inside it, e.g. a method call. In Java,
you cannot use an operation on a parametrized type unless you declare
that yes, this type shall conform to this interface/class.
> C and C++ are not strictly typed.
Not C, but every resource I've seen on C++ claims it is (by default),
though how strong anything is when it can be cast away as will is a
different question. Maybe you define "strong/strict typing"
differently from the makers of C++ and Java?
> No. The reason is that there are too many monkeys around. Not so
> much humans. Ask yourself - why so much people listens "rap" and
> other popular crap, much more then good jazz or classics? Would you
> list this fact as an argument that rap is better? Popularity is a
> shit. Almost everything that is popular must be a shit.
I am getting the impression "Lisp" is a mis-spelling for "Elitist".
- 3
- Global Servlet FilterI'm writing a servlet filter that will keep track of the number of hits
for my site but the site is composed of several web applications. I'd
like to write it in such a way as to allow it to work with all of the
applications at one time, instead of tallying individual counts by hand.
Any pointers or suggestions are appreciated.
Thanks,
-Makr
- 4
- JSR 211 CHAPIHello everybody
Does anyone know if some mobile devices implement JSR211?
Thanks for help
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
- 5
- Petstore populate dbHello, why some applications like Petstore populate the db
when the application start? It's a java demonstration or is a
usual procedure?
TIA
- 6
- sound in JavaHi all!
How is possible to change frequency at java's command beep()? Or
somehow? I need two different beeps in my application. They should be
only a kind of beeps and not playing MIDI or something similar.
Thanks,
Branko
- 7
- how does picking and intersection works ?hi
I am interested i knowing how does the picking and intersection of shapes.
I am more concerned about picksegment and shape3d intersection. what's the
algorithm used and how effective it is. I am interested in the thoery of
all this than programming.
I am using pick segment to pind the intersection point, I have to find the
distance and than do some maths to find the intersection point, is there
an built-in function for this.
Thanks
sonu
- 8
- Please help me
"Andrew Thompson" <email***@***.com> wrote in message
news:email***@***.com...
> On Wed, 9 Jun 2004 19:16:11 +0100, April wrote:
> > "Andrew Thompson" <email***@***.com> wrote in message
> >> On Tue, 8 Jun 2004 16:38:14 +0100, April wrote:
> >>
> >>> I have recently got a new pc but for some reason I am unable to get
java
> > on
> >>> it. I have downloaded it several times and it has gone through the
> > motions
> >>> but still does not work. This is starting to annoy me as many web
sites
> > I go
> >>> to use java. Any ideas anyone please.
>
> > Yes I am running windows XP with internet explorer.
>
> Would you consider using a different browser?
>
> Before we go to what might be a great deal
> of effort, I should point out that internet
> explorer is the single most broken browser
> available.
>
> Installing a browser like Mozilla or Opera,
> then (if necessary) installing Java almost
> always goes smoothly on browsers that are *not*
> IE. Both Opera and Mozilla are also better
> at rendering valid web-pages, and offer things
> that IE simply cannot do.
>
> >> Do you know how to open the command line,
> >> also known as DOS?
>
> > I am not too sure about
> > opening the comand line.
>
> We will leave that for the moment, though
> that may be necessary if you really want
> to coax IE into understanding Java (though
> I cannot make any guarantees we will get
> Java working in IE even then)
>
> >> <http://www.physci.org/pc/properties.jsp>
> ...
> >> Once you download it, double click
> >> it and report what happens.
>
> >..I downloaded jtest but am unable to run it as I
> > have not got the programe to run it with. It asks me if I want to choose
a
> > programe to open it with or look on the internet. I looked on the
internet
> > but I am totally lost.
>
> I had hoped this was a more limited problem,
> but that test rules out those hopes..
>
> >..You can email me if you would likl to.
>
> I answer questions on usenet for free,
> email help costs money. ;-)
>
> For the moment I suggest you try one of
> the other fine browsers available, see
> if you can get Java working in it (which
> will probably be as easy as IE promised,
> but failed to deliver), and get back to us..
>
> --
> Andrew Thompson
> http://www.PhySci.org/ Open-source software suite
> http://www.PhySci.org/codes/ Web & IT Help
> http://www.1point1C.org/ Science & Technology
Ok I am going to try morzila and hope for no problems but if I do get any
then I just system restore.
- 9
- Compiling Java code using Ant within EclipseHi,
I am using Eclipse 3.0 to create a number of Java projects all located
within the same workspace. I had everything building ok but decided to
migrate to using Ant to try and manage things a bit better.
Now when I try and compile my app using Ant it does not find references
to external libraries. Now I suspect I need to specify the classpath in
the build.xml file, but is there a way of telling it to use the set of
libraries I have allready specified via Project->Properties->Java Build
Path->Libraries?
I currently have a build.xml file for each of the projects in my
workspace. Is there a way of creating a build.xml file which invokes
each of these in turn so that I can just do one big build?
Thanks for your help.
Andy
- 10
- Apache Derby : create several instances.Hello.
I am using Apache derby database (Client network).
I see that when I create table it is created on an instance APP
(I don't know if instance is the correct word. sorry of my English).
I see that there are other instances (NULLID, SQLJ, SYS, etc).
Can I create an instance of my own in derby database, and how can I do that
?
(One instance may be used for repository, another for Datawarehouse, ...)
Another thing :
If I create several databases for te above reason (repository may be on
another db), how can I join them, when I am connected to database1, and want
to run a query that join both tables from database1 and database2 ?
Thanks :)
- 11
- 12
- String exceeding length - Getting absolute string lengthHello,
I am having a problem when inputting very long strings into a database.
The application I am writing can use different databases (thanks to
the wonders of JDBC) so this issue has been causing problems on both
Oracle and SQL Server.
Because one of the design objects was to support any JDBC compatible
database, a concern was raised about text widths. It was therefore
decided that the maximum column width for a VARCHAR would be a
configurable value. We theoretically knew that data could be more than
a single line so we introduced a sequence number to allow multiple
rows. (Don't ask me why we didn't use CLOBs instead, this is the
schema I'm stuck with.)
We now need to store base64 data in the same fields. The problem is
that in an example 4000 characters as defined by the Java string
object, its physical size is approximently 4430. This seems to be
because of the amount of mark-up involved, either in the base64 data or
possibly with the text between.
It occurs to me that while a non-ASCII value many be only a single
character in a unicode string, it is 6 characters in UTF-8. Therefore
I'm looking for a way of calculates the absolute length, rather than a
count of characters.
Is this possible or will I have to change the schema?
- 13
- 14
- Embedded underscoresI noticed Ruby has a convention I wish Java would implement. I think
it could be done without breaking existing code.
You simply permit the _ character to appear embedded in numeric
literals in Java source code. The lead _ would not be permitted, so
you still have no trouble telling a number apart from an identifier.
Then you might write a numeric literal like this:
2006_12_31
or
123_456_679
or
0x1234_5678
or
250_361_9093
or
1000_99
The _ is simply ignored. You use it to break the number up in
whatever way you choose to make it more readable.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
- 15
- JSTL concatenateWell.. i wanna to concatenate a string... like:
String x;
while(true)
x += "x";
Then i get xxxxxxxxxxxxxxxxxxxx :)
How do i do that on JSTL?
Here is my code...
<c:set var="valorColuna" value="${rowValues.value}"/>
<c:forEach var="pk" items="${datagrid.primaryKeys}">
<c:set var="pkActual" value="${pk.columnName}"/>
<c:if test="${colunaActual == pkActual}">
<c:set var="pkValor" value="${valorColuna}{$valorColuna}"/>
I have tried without operators but it does not work. JSTL functions
also seem not to help (no concat function!)...
Any sugestions?
Thanks,
JF
|
|
|