How to zip my java code
Hi all,
I am in java JSP development environment. How to distribute my code for reuse my team member, they should not see my code, but they can access my code.
Some way of jar or zip file sysem in jsp progream
server tomcat server
regards,
TGS
S/he should put it in JAVA_HOME/jre/lib/ext/Should not! Only classes which are supposed to extend the jre should go there. Third party JARs should be kept at any different location and included in the classpath as and when required.
Similar Messages
-
How to view the java code of the message mapping,
Hi Experts,
<b>how to view the java code of the message mapping,</b>
how to get the background java code of the message mapping(graphical mapping).
And where to view it?Hi sowmya,
Open any Message mapping in IR. Press <b>CtrlShift0(zero)</b> to open a new menu.
There you will find an option "Is Java Source Code Available?"
There will be an export button nearby. Use it to get the code.
Open it in a zip , you will see the hide java code.
The JAVA code for graphical msg mapping is in below folder:
\usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
Here all the mapping jars are there in this folder.
Just decompile these jars and you can see the code. -
How to get the java code of the message mapping
how to get the java code of the message mapping,
I mean to ask how to get the background java code of the message mapping(graphical mapping).
And where to view it?Hi Satya,
The JAVA code for graphical msg mapping is in below folder:
\usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
Here all the mapping jars are there in this folder.
Just decompile these jars and you can see the code.
Thanks,
Rajeev Gupta
Message was edited by:
RAJEEV GUPTA -
How do you turn java code into an .exe or etc...
I can't seem to figure out how to turn my java code into an executable in windows so that it runs by itself without a comipler, can someone help? (without using visual J++).
I can't seem to figure out how to turn my java code
into an executable in windows so that it runs by
itself without a comipler, can someone help? (without
using visual J++).I saw a tutorial on that, you might want to check it out.
http://developer.java.sun.com/developer/onlineTraining/new2java/divelog/?frontpage-headlinesfeatures -
How to get the java code of the standard functions
How to get the java code of the standard functions in xi
Example , hoh get the java code for a node function - removeContext.hi
Click on the Standard Function.
Hold Ctrl+Shift
right click on the standard function to view the context menu. You will see options to view the source code by exporting
regards
krishna -
How to execute a java code ...
how to execute a java code just like in javascript:
for example in javascript: we can create a function :
name_fonction=new Function("param1","param2",..., "Instructions");
but can it be supported in the common java code? how to do it?
Je suis a little urgent...
Thanks a lot!!!See beanshell
http://www.beanshell.org/
which should be include in the next J2SE 6.0 or 7.0.
See JSR 274 at http://jcp.org/en/jsr/detail?id=274
--Marc (http://jnative.sf.net) -
How to generate the java code of a table's data model by parsing it's FXML?
I have know how to create FXML file that describes a table. Meanwhile, according to [Oracle Tutorial|http://docs.oracle.com/javafx/2/fxml_get_started/fxml_tutorial_intermediate.htm#CACFEHBI], it is a best practice to implement a class that defines the data model and provides methods and fields to further work with the table.
However, It's rather cumbersome and time consuming to typing the code. So, is there any tools that can generate the java code of a table's data model by parsing it's FXML describe file?
Regards, Qinn
Edited by: 854675 on Oct 7, 2012 11:02 PMI have know how to create FXML file that describes a table. Meanwhile, according to [Oracle Tutorial|http://docs.oracle.com/javafx/2/fxml_get_started/fxml_tutorial_intermediate.htm#CACFEHBI], it is a best practice to implement a class that defines the data model and provides methods and fields to further work with the table.
However, It's rather cumbersome and time consuming to typing the code. So, is there any tools that can generate the java code of a table's data model by parsing it's FXML describe file?
Regards, Qinn
Edited by: 854675 on Oct 7, 2012 11:02 PM -
Tips on how to write efficient java code for java mapping
hi
I do not have much knowledge in Java
Can anybody tell me some tips on how to write efficient and optimised java code to be used in java mapping
Thanks,
Loveenahi D'za,
JAVA in xi
A very important place where you will use JAVA in XI is while doing your Mapping. There will be cases when JAVA MAPPING is the best solution to go for. There are 2 types of Parsers available for JAVA Mapping. DOM Parser and SAX parser. Just got through the following links to understand more on Java Mapping and the APIs available.http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/package-summary.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
JAVA mapping -
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
sample code for java mapping
Re: Example code DOM PARSER API -
http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html DOM --- /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs tutorial sax and dom
For a tutorial on the methods of SAX and DOM http://java.sun.com/webservices/docs/1.1/tutorial/doc/
SAX AND dom PARSER ( BY thorsten) -
example /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs java mapping example ( testing and debugging) /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
regards
biplab
Use a Good Subject Line, One Question Per Posting - Award Points -
How to redirect in java code not the jsp or any other
hello
can any one help me how to redirect in java pages the code must be in java function not in jsp or any thing else
thanks in advanceFunction? Don't you rather mean method?
Anyway, in JSF you can send a redirect using ExternalContext#redirect(). If your JSF environment is on top of JSP/Servlet, then under the hood it basically invokes HttpServletResponse#sendRedirect() and FacesContext#responseComplete(). -
How to compile the java code into machine execution code?
Does anyone can tell me how to compile java code into machine execution code on specific OS platform such as Windows2000 , UNIX �Ketc.
Thanks a lot !Hi SIR
It is very kind of you to give me so great informatin!
Thanks a lot!
Caton -
How to search inside java code?
How to search for pattern in Java code from NWDS? For example, I want to search for "wdThis" in java code. Where to look for find or search button?
Hi,
You can also use CTRL+H key for searching any Java or non-Java code across all projects you have opened in your workspace.
Just go to Project Explorer View and select any project, then press CTRL+H, a set of search option will show up.
Hope it helps.
Best regards,
David. -
How can I write java code in web dynpro to show KM content document?
Dear all developer
SDN developer who have any easy example java code for get and show KM content documents(documents/com.xx.km/.). We are develop this project by Netweaver Studio 7.0 and using WEB Dynpro application.
Thank for all comment and advice.
Jumnong BoonmaHi
i dont have the exact code but yes..i can refer to the link for Web Dynpro applications for the Portal.
[http://help.sap.com/erp2005_ehp_03/helpdata/EN/42/fa080514793ee6e10000000a1553f7/frameset.htm]
Here look out for Absolute Navigation.
Hope it helps...
Thanks.. -
How to develop a Java code that allows other applications to interact
I would like to program a Java code, in order to allow to third party
applications (e.g. VB or Power Builder applications ) to call specific
functions (exposed by me). Is this possible in Java?
As i m totally new to Java ... i need to know where to start with
Should i go with
- Applet or
- Servlet or
- Beans
Thanks :)Thanks for the advice dude .. i appreciate what you just said ... i will go thru it definitely ...
i m not very new to Java ... i m confortable with Core Java ... Just i wanted to understand whether i shud go with JavaBeans ?
and if so,
as i understand it correctly ... the jar file will be placed on the third party tool application server(developed in ASP) and the application will call the function (of my jar file)along with parameters to that jar file thru an interface ... and my jar file will calculate the logic and return the string to the applications ASP Page. -
How to convert these java codes (for a feedback) to javabean?
Can anyone please help me to convert these java codes (for feedback) to javabean using the MVC Model-View-Controller pattern design?
<%
//instantiate variables
Connection con = null;
Statement stmt = null;
Statement stmt2 = null;
ResultSet rs = null;
String queryString;
int newInBoxMsg = 0;
int newSentMsg = 0;
int newSavedMsg = 0;
int newTrashCanMsg = 0;
String currentUserID = 1+"";
String adminID = 1+""; //change this ID to your adminID in the db
try
//Load the JDBC driver
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
//Get the connection getConnection("access driver", "userID", "password")
con = DriverManager.getConnection("jdbc:odbc:FREN_DB","","");
stmt = con.createStatement();
//sql statements: create, update, query
Calendar cl = Calendar.getInstance();
%>
<%
if(request.getMethod()=="POST"){
int y = stmt.executeUpdate("INSERT into Feedback(`whom`, `msg`, `date`)"
+" values ('"+currentUserID+"', '"+request.getParameter("date")+"', '"
request.getParameter("msg")"')");
int x = stmt.executeUpdate("INSERT into MailBox(`whom`, `who`, `mailheader`, `mailbody`, `date`)"
+" values ('"+adminID+"', '"+currentUserID+"', 'Feedback', 'We have received your feedback and we will respond to you as soon as possible', '"+request.getParameter("date")+"')");
out.println("Feedback Sent!");
else {
%>
<form name="compose" method="POST" action="Feedback.jsp">
<input name="date" type="hidden" value="<% out.println(cl.get(cl.DAY_OF_MONTH)+"/"+cl.get(cl.MONTH)+"/"+cl.get(cl.YEAR)); %>" maxlength="20">
<p>Your Feedback</p>
<p>
<textarea name="msg" cols="50" rows="10"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<%
}catch(Exception e) {
System.out.println(e);
%>Okay, first suggestion is to never create database connections in JSP/Servlet. SInce you mentioned MVC, JSP is the View, and a servlet can be the controller to process requests and redirect accordingly.
This piece of code should be in a class invoked from the model layer (business logic components) preferably with some abstraction. Maybe you should search around for DAO pattern. That might give you an idea. -
How to execute an java code in pl/sql
hi frnzzzzz....
iam new to java and sql both..... and i whant to execute an java program at pl/sql window. do i have to write an code on java source in program unit of pl/sql editor (i.e is in File>>new>>program window>>java source), if yes then i have done
(i have writtttten
create or replace and compile java source named tt as
public class tt
public static int entry()
return(10);
that and after pressing f8
i gott up the message compiled successfully, and after that i am wondering that how i can run it .
and if i have write an seprate code using notepad then i have done that tooooo....
but now what to do to load java in my pl/sql window?????????
plz. help me out...Hhhhhhhhhhhaaaaaaaaaavvvvvvvveeeeeeeee
yyyyyyooooooooouuuuuuuuuurrrrrrrrrr
kkkkeeeeeyyyyyyyybbbbbboooooooooaaaarrrrrrrrrddddddddd
ffffffffiiiiiiiiiixxxxxxxeeeeeeeeedddddddddd
ffffiiiiiiiirrrrrrrsssssssssssssttttttttt,,,,,,
ppppppppppplllllllllzzzzzzzzzZZzzzzzzzzzzzzZzzzzzzzzzz
!!!!!11!1!!11111!loool
Maybe you are looking for
-
Converting seconds to HH:MM:SS - How can I do that?
I have a need to convert raw seconds (up into the thousands of seconds in many cases) into a formatted field of: HH:MM:SS Additionally, this field is ultimately a SUM field, so will be summing for the seconds in the report detail (which is invisible)
-
Will I lose my Unlimited Data plan?
Hi, I currently have an LG Vortex, which I got sometime in June of this year when I was scheduled for an update. Obviously, my phone isn't ready for an update yet, but if I take in a phone I already have (such as my father's, which he's giving me bec
-
Cannot save a completed copy of adobe forms
Hi experts, i was developing a simple Adobe form with a drop down list. When saving that form on local system ad then opening it , I tried changing the valve in drop down list it gives me a pop-up as "You cannot save the completed copy of this form o
-
I have two tables Projects, Quantitystructures and a region Project Utilization. The Projects table contains details about the various projects(project_id,caption,start_date,end_date). The Quantitystructures table contains details about the shraedser
-
Edit variable selection screen
Hi, I want to edit the variable selection screen in WAD 7.0 (change width of colums). Can anyone give me the template-name? Michel