|
|
You can see the jlGui Music Player which has been built under the Java platform. Its documentation would help you understand the packages and classes required. Also please clarify whether you are looking to build an applet or a swing application.
here is the link - http://www.javazoom.net/jlgui/jlgui.html[^]
|
|
|
|
|
FYI[^]
***** Programme comme si dept soutien technique. est plein de tueurs en série et ils savent adresse de votre domicile. *****
|
|
|
|
|
i used ArrayList and create jni headder file.Generate JNI stub generates jobject for ArrayList in jni header file.but i dont know how do i handle this jobject.
i may use object array instead of ArrayList but i have problem for dynamic arrays.Beside i cant use List<>.please help me!!!
|
|
|
|
|
See here[^] for a description of handling Java types in JNI.
The best things in life are not things.
|
|
|
|
|
i saw this page but only create string array.For example i have a class that is called ObjectClass and i declare ArrayList<objectclass>.
how do i use jni side.Maybe your link explain that but i dont understand how to do or i cant see..
|
|
|
|
|
I am not certain, but I don't that you can access Java objects on the C/C++ side.
The best things in life are not things.
|
|
|
|
|
|
You can certainly access Java objects in C/C++.
|
|
|
|
|
Maybe you could explain how for the benefit of the OP, and me.
The best things in life are not things.
|
|
|
|
|
|
Still waiting for the solution as to how; I have not been able to discover it.
The best things in life are not things.
|
|
|
|
|
Your question is not clear.
Start by writing a Java method that demonstrates in an approximate fashion what you want to do in C/C++.
Each line in the java method will map into C/C++ code (one or more lines).
|
|
|
|
|
hmmmm...
public void Update( Coordinate3D pCoord, float pRange, float pTargetElevation,float pLeftHeading, float pRightHeading,
float pRayResolution, int pMaxNumberOfSamplePerRay, ArrayList<CoverageRay> pCoverageRay){
jUpdate(refClass, pCoord, pRange, pTargetElevation, pLeftHeading, pRightHeading, pRayResolution, pMaxNumberOfSamplePerRay, pCoverageRay);
}
private native void jUpdate(long pRefClass, Coordinate3D pCoord, float pRange, float pTargetElevation,float pLeftHeading, float pRightHeading,
float pRayResolution, int pMaxNumberOfSamplePerRay, ArrayList<CoverageRay> pCoverageRay);
JNIEXPORT void JNICALL Java_MapLayers_VectorMapLayers_CoverageMap_jUpdate
(JNIEnv *, jobject, jlong, jobject, jfloat, jfloat, jfloat, jfloat, jfloat, jint, jobject );
firstly sorry my bad english...
i have this method in java and Generate JNI Stub produced upper code.and i dont know how to use pCoverageRay and reach entities of pCoverageRay in JNI.
i hope i can explain what i want.
|
|
|
|
|
That isn't what I said.
Again write java code (NOT C/C++) code that represents in general what you want to do in your C/C++ code.
You then use that code as a model to create your C/C++ code.
|
|
|
|
|
Simple scenario: User goes to a web page, click a button, download the selected files.
Problem: the problem is the files are all separate, I would like to zip them all up and let the user just press one button to save. the zip it self is simple, yet my files are excel generated by the jsp with html code
response.setHeader("Content-Disposition", "attachment; filename=\"blah blah.xls\"");
out.println(<html>blah blah blah</html>);
So since it is generated all dynamically. Is there even a way to zip them up before they are downloaded.
Or even generate excel on the server using these html way?
|
|
|
|
|
Change your point of view - zip the stuff and extract single files when needed. That's much simpler.
regards
Torsten
I never finish anyth...
|
|
|
|
|
I'm sorry if i didn't explain it well enough.
The point of the whole thing is to zip multiple dynamic generated files out, allowing the users to download the zip file in one click instead of the need to press multiple times to download multiple files.
|
|
|
|
|
|
To get your proposed solution to work, you're on the right track by assuming you need to do all creation/zipping on the server side. Instead of having the jsp generate the excel files, have it done in a Servlet on your server side instead, based on parameters from the JSP page.
You can then create the Excel files (likely by creating CSV files and renaming them, or using a third party library, such as JExcel (http://jexcelapi.sourceforge.net/[^]) and return the resulting .zip to the browser for download.
Cheers!
|
|
|
|
|
Hi,
I have an ant build script as shown below.
<target name="runscript" depends="compile">
<echo file="run.sh" append="false">java -cp ${mclib}/mundocore.jar:bin Chat</echo>
<chmod file="run.sh" perm="+x"/>
<echo file="run.bat" append="false">java -cp ${mclib}/mundocore.jar;bin Chat</echo>
</target>
The build script portion produces a batch file named run.bat, which simply executes a java compiler command.
java -cp C:\mundocore-1.0.0-RC1\lib\se/mundocore.jar;bin Chat
I want to send some commandline arguments with the run.bat script.e.g in command prompt
run.bat hello
How can i change the the ant build script to generate a batch file that can accept arbitrary number of command line arguments.
Thanks in advance...
|
|
|
|
|
|
Hello
I want code to java application that simulates a simple registration systems
*Main Screen
1.Insert a new data
2.Update data
3.Delete data
4.Print all Information
5.Exit
Total number of students :4
Number of student in CIS :3
Number of student in MIS : 1
*Insert Screen
Enter ID:
Enter GPA(double):
Enter Name:
Enter Major:
*Update Screen
Update ID:
Update GPA
Update Name
Update Major
*Delete Screen
Enter ID:
Note:
1.In the(Update and delete) operation, if the user enters a not-exist ID, your application must tell the user that ID is not-exist and return to main screen.
2.In each one of(Insert and Update)operation, your program must check that there are No two students have the same ID.
3.After each one of (Insert, Update and Delete) operation, tell the user what happens(i.e. "A new record is inserted","One record is update", "one record is delete","It is Not allowed to duplicate ID","This ID is Not exist")
4.In each one of (insert and update) operation your program must check that the value of inserted GPA is between 0 and 4, and if it is Not the program must ask the user to repeat the insertion of GPA
5.After finishing any one of (insert ,update and delete) operation ,the program must return to main screen
|
|
|
|
|
See points 2 and 11 in the forum guidelines... Read the other ones as well, I think you might need it.
|
|
|
|
|
This question is far too large to be answered in a forum like this, and we do not provide custom made solutions to order. In the meantime I suggest you spend as much time as possible working through these tutorials[^] in order to develop the knowledge and skills you need to succeed in this task.
The best things in life are not things.
|
|
|
|