HI,
I need to know how to set class path for the client tag
under web service of build.xml in java.
I have to add the log4j.properties file to the client jar.
Thanks
Abhi
hi,
I'm trying to access owl file using jsp.I've successfully load the owl file and quering that using SPARQL.But still I couldn't success with JSP.
I'm always getting error "java.lang.ClassNotFoundException: com.hp.hpl.jena.util.FileManager
"
help me!
Thank in advance!
Hi!
Is it possible to set 'clipping bounds' in JOGL? Like in Java/Swing i would like to set clipping bounds and all drawing/rendering outside those bounds would be ignored.
Hello
Does anyone know if there's a method in Joda Time or Java itself which takes either an int or a String as an argument, e.g. 4 or "4" and gives the name of the month back in short format, i.e. JAN for January?
I suppose long month names can be truncated and converted to upper case.
Thanks
Mr Morgan.
Hi,
there is a poker-system in java, that uses Collections.shuffle() on all available cards before the cards are dealt.
So a collection of 52 cards 2-9, J, Q, K, A in 4 types.
After that we Collections.shuffle().
The problem is, that it seems (until now we didn't have big statistic, it's possible that we only see a lot of statistic inferences), that the algorithm is VERY unclearly.
So, is Collections.shuffle() okay for a poker algorithm?
hello all.
I have an array:
int test[]={10212,10202,11000,11000,11010};
I want to split the inetger values to individual digits and place them in a new array as individual elements such that my array now is:
int test2[]={1,0,2,1,2,1,0,2,0,2,1,1,0,0,0,1,1,0,0,0,1,1,0,1,0};
How would i go about doing that? I'm doing this in java.
Thank you.
How could I write a simple program using OpenType tables in order to dynamically render text?
please answer in :
assembly , C , C++ , C# , java or Python (and a little WPF:-)
or introduce libraries of them.
comments and answers about text rendering system of common Operating Systems, or designing text engines compatible with unicode 5.02 protocol are welcomed.
Hi,
Is it possible to calculate the bounds of a htmlized String in Java Swing?
I tried using the BasicHtml.createHTMLView, but kept getting the same prefSpan; irrespective of the component font.
Regards,
Pavan
I´m developing a Java solution for manage an iTunes Library (ITL file). The ITL format is a propietary one.
I'm looking for an implementation or a documentation about ITL format but Google can't find anything useful.
Does anyone have experience about that? Where to find more information?
Thanks in advance.
Hi i am trying to login site with request, using username and password , i can succesfully login the user than i want to parse some html and send it to database ,what it return is activex object that i can not do anything(by the way i am using java to do that) ,in order to bypasss the active x object what is your solution?
1-First come to my mind i can write c# application that using internex explorer dll than login user, it parse html and send it to database than i can use data in database
Hi,
I want to download you tube videos programatically (using Java). How can i convert you tube video link to a downloadable URL.
Browser plays youtube videos with following code.
I tried downloading from URL http://www.youtube.com/v/OdAE3cWlmHw
but it is not returning video bytes.
Thanks
Lalit
Dear all,
I am new to JPA, I used to used prepared statement in JDBC. Is there alternative to be used within JPA ? as there is a query which I call frequently
see this for info about prepared statment http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html
thanks in advance,,,
How can I see in Java if an Object is an array without using reflection?
And how can I iterate through all items without using reflection?
I use Google GWT so I am not allowed to use reflection :(
I would love to implement the following methods without using refelection:
private boolean isArray(final Object obj) {
??..
}
private String toString(final Object arrayObject) {
??..
}
BTW: neither do I want to use Javascript such that I can use it in non-GWT environments
Ed
I have a xml document. I know the index where i need to insert the new node. The index that i have is the position considering only the text nodes and ignoring the element tags. Is there a java api to seek the index in a xml knowing the position relative to the text nodes alone and insert a new node in that position?
Hi,
I have been working in Java for the last 6 months and have been using Hash Maps
What is the basic idea of a Hash Map ? I am using it as it easy for me to store so much data with direct key references rather than having to iterate through an arraylist ?
Where is the power of Hash Map seen ? What is the scientific idea behind this data structure ?
i am writing stored procedures in MySQL that return values;
CREATE PROCEDURE getCustomerById (id int)
BEGIN
SELECT *
FROM customer
WHERE customer.id = id;
END;
and i get the error that the results cannot be shown in the given context.
after some googling, i think that i need to set the flag "CLIENT_MULTI_RESULTS" - i am connecting the database from JDBC using a java app, but cant find where to set it!
any suggestions?
In Java, I may have a class, for example, "utility" ....., and I have a static method called "changeToCapitalLetter", so , I can do something like this:
Utility.changeToCapitalLetter(String myString);
How can I do the similar thing in Objective C? thz a lot.
hi
i want to write a mapviewer, i must to work small tile of big map image file and there is need to tiling the big image, the problem now is to tiling big image to small tiles (250 * 250 pixel or like this size)
so on, i used ImageMagic program to do it but there was problem
now is any other programing method or application that do tiling?
can i do it with JAI in java? how?
Hi,
As part of a homework assignment, I have to program a simple chess game in Java. I was thinking of taking the opportunity to experiment with recursion, and I was wondering if there's an obvious candidate in chess for recursive code?
Thank you,
JDelage
I came across this questions on one of the online Java Tests. The options were 4,5,8 and any number of times.
I have only used one inner class, but have never tried multiple ones. I was wondering if anyone knows the answer.
Examining the attributes of UTF-16 and UTF-8, I can't find any reason to prefer UTF-16.
However, checking out Java and C#, it looks like strings and chars there default to UTF-16. I was thinking that it might be for historic reasons, or perhaps for performance reasons, but couldn't find any information.
Anyone knows why these languages chose UTF-16? And is there any valid reason for me to do that as well?
<body>
<form action="<%= blobstoreService.createUploadUrl("/upload") %>" method="post" enctype="multipart/form-data">
<input type="file" name="myFile">
<input type="submit" value="Submit">
</form>
</body>
the above code throws a java.lang.NoSuchMethodError on compilation.I can't understand and what is blobstoreService in the above code ?
Is it possible to configure a WebServiceTemplate with a java keystore?
edit
I'm looking for a way to configure the location of the keystore in the spring config
Hi,
I'm planning to modify some bits in the platform/frameworks/base project in Android Donut r2. The modifications are very small and go into java packages android.graphics and android.text (the API isn't affected).
What jar libraries do I have to copy from the recompiled platform? the modifications are small and I don't want to replace the whole system.. I'm trying to replace specific jar libraries.
Thank you