Class
Hi,
I am using a global class in my function module which I have to make a Remote enabled, how should I declare the class in the Function Module, it is throwing me error when I declare my object name and type ref to class .
Thanks,
V
Hi,
I would recommend to use the Pattern button you find in the toolbar (CTRL+F6), and select ABAP Objects pattern.
It will help you code the actual call to the method.
For instance, to call the GUI_DOWNLOAD method you will proceed by :
1) Enter CL_GUI_FRONTEND_SERVICES as the class/interface
2) Enter GUI_DOWNLOAD as the method.
You can use the match code once the class is entered to view the list of available methods.
Here is the result (as Rich mentionned it) :
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
BIN_FILESIZE =
filename =
FILETYPE = 'ASC'
APPEND = SPACE
WRITE_FIELD_SEPARATOR = SPACE
HEADER = '00'
TRUNC_TRAILING_BLANKS = SPACE
WRITE_LF = 'X'
COL_SELECT = SPACE
COL_SELECT_MASK = SPACE
DAT_MODE = SPACE
CONFIRM_OVERWRITE = SPACE
NO_AUTH_CHECK = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = SPACE
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = SPACE
WK1_N_SIZE = SPACE
WK1_T_FORMAT = SPACE
WK1_T_SIZE = SPACE
IMPORTING
FILELENGTH =
changing
data_tab =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
NOT_SUPPORTED_BY_GUI = 22
ERROR_NO_GUI = 23
others = 24
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
If it is a static class with static methods, you can call them like this.
CALL METHOD <b>CL_GUI_FRONTEND_SERVICES=></b>Gui_Dowload
EXPORTING......
IF they are instance methods, you must first create an object of the class.
data: gui_object type ref to cl_gui_frontend_services.
create object gui_object.
CALL METHOD <b>GUI_Object-></b>Gui_Dowload
EXPORTING......
Best regards,
Satish
Similar Messages
-
how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?
Hi
I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
Especially the section Don't which says -
DON'T
Don't post a series of questions in a single post. Splitting them into separate threads increases your chances of a quick answer.
PZ
www.pziecina.com -
Previewing an image before uploading it using the FileReference class
Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4
Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4
-
Previewing an image before uploading it using the FileReference class in flex 3
Previewing an image before uploading it using the FileReference class in flex 3 ?
hai,
when this code is used in my application ,i got the name of image and new frame is added each time .But image is not displayed.....
The code starts like this
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init()" backgroundColor="white" width="100%" height="100%">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.messaging.Channel;
import mx.messaging.ChannelSet;
import mx.messaging.channels.AMFChannel;
import mx.rpc.events.ResultEvent;
import mx.controls.Image;
import spark.events.IndexChangeEvent;
import mx.managers.DragManager;
<mx:DataGridColumn headerText="Dimension Value" width="10" dataField="dimensionValue"/>
<mx:DataGridColumn headerText="Unit Nmae" width="10" dataField="dimensionUnitName"/>
</mx:columns>
</mx:DataGrid>
<mx:Spacer width="2%"/>
</mx:HDividedBox>
</mx:VBox>
<mx:Spacer height="0"/>
<mx:VBox width="100%">
<s:HGroup height="90" top="0" left="0" right="0" verticalAlign="justify" gap="10" paddingLeft="5" paddingRight="5" paddingTop="5" paddingBottom="5">
<s:Button id="btn_loader" top="5" bottom="24" width="100" label="load" click="loadImages()"/>
<s:Group width="100%">
<s:Group name="cl" top="0" left="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
<s:BitmapImage source="@Embed('../assets/left.jpg')" top="0" left="0" bottom="0" right="0" fillMode="scale"/>
</s:Group>
<s:List id="imgList" skinClass="skins.ListSkin" top="-3" left="27" right="28" bottom="10"
dataProvider="{ImageCollection}" itemRenderer="Image_Render">
<s:layout>
<s:HorizontalLayout gap="0"/>
</s:layout>
</s:List>
<s:Group name="cr" top="0" right="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
<s:BitmapImage source="@Embed('../assets/right.jpg')" top="-1" left="0" bottom="0" right="0" fillMode="scale"/>
</s:Group>
</s:Group>
</s:HGroup>
<s:SkinnableContainer id="dropCanvas" top="100" left="5" right="5" bottom="5" backgroundAlpha="1.0" alpha="1.0"
dragEnter="dropCanvas_dragEnterHandler(event)"
dragDrop="dropCanvas_dragDropHandler(event)" contentBackgroundColor="#914E4E" backgroundColor="#F7F7F7">
</s:SkinnableContainer>
</mx:VBox>
<mx:Spacer height="5"/>
</mx:VDividedBox>
</mx:Panel>
</mx:Canvas> -
Get the values from the bean class?
Hi Praveen and all can u please suggest in this,
I have developped an application In that Create One java class that Extends PageProcesscomponenet and utilizing the Bean That have the Connetion method and retriving the query Based on the Logon customer and spoof customer.
this functionality I have developped in Pageprocessor component.
The same functinality I am utilizing another java Class that Extends AbstractPortalcomponent and utilizing the same Bean.
But the problem both java classes for I used one Jsp only Dynmic spoof customer will come from the JSP Input filed.
In the new Java Class How can I capture the Event When I click the Buttong the InputField value capturing into the AbstractPortalcomponent Class.
I tried like this but It comes as Null Value.
Event event = myContext.getCurrentEvent();
if(event!=null)
InputField ip= (InputField) myContext.getComponentForId("spoofCust");
String spoofCust=ip.getValue().toString();
Please suggest me in this.
What is wrong with this.
Thanks,
Lohi.
Message was edited by:
Lohitha MLohitha,
Try replacing your two lines of code:
InputField ip= (InputField) myContext.getComponentForId("spoofCust");
String spoofCust=ip.getValue().toString();
with:
InputField ip = (InputField) getComponentByName("spoofCust");
String spoofCust = ip.getValueAsDataType().toString();
Let me know how that works for you.
-John -
Get the values from Exception class
Hi all ..
In class i have raised one exception
when i catch this exception in my program i m able to get the
error message but i need to get all the parameters that i pass
when i raise the exception ...
i have raised like this
RAISE EXCEPTION TYPE cx_bapi_error
EXPORTING
textid = cx_bapi_error=>cx_bo_error
class_name = 'ZHS_'
log_no = wa_bapi_return-log_no
log_msg_no = wa_bapi_return-log_msg_no
t100_msgid = wa_bapi_return-id
t100_msgno = wa_bapi_return-number
t100_msgv1 = wa_bapi_return-message_v1
t100_msgv2 = wa_bapi_return-message_v2
t100_msgv3 = wa_bapi_return-message_v3
t100_msgv4 = wa_bapi_return-message_v4
STATUS = lt_status
and caught the exception like this in my program
CATCH cx_bapi_error INTO go_error.
gd_text = go_error->get_text( ).
EXIT.
ENDTRY.
in this i m just getting the class name which i have passed in exception
i need all other parameters that i have passed ..
if u have any idea pls let me know ..
Thanks in advance ...Hello Jayakumar
Usually the attributes of standard exception classes are defines as <b>public</b> and <b>read-only</b>. Thus, you should be able to use the following coding:
DATA:
go_error TYPE REF TO cx_bapi_error. " specific exception class !!!
TRY.
RAISE EXCEPTION TYPE cx_bapi_error
EXPORTING
textid = cx_bapi_error=>cx_bo_error
class_name = 'ZHS_'
log_no = wa_bapi_return-log_no
log_msg_no = wa_bapi_return-log_msg_no
t100_msgid = wa_bapi_return-id
t100_msgno = wa_bapi_return-number
t100_msgv1 = wa_bapi_return-message_v1
t100_msgv2 = wa_bapi_return-message_v2
t100_msgv3 = wa_bapi_return-message_v3
t100_msgv4 = wa_bapi_return-message_v4
STATUS = lt_status.
CATCH cx_bapi_error INTO go_error.
gd_text = go_error->get_text( ).
WRITE: go_error->t100_msgid, " perhaps the attributes have different name
go_error->t100_msgno, " check attribute names in SE24
EXIT.
ENDTRY.
Regards
Uwe -
Problem with setContentPane() in JFrame class
I recently discovered a problem with the setContentPane method in the JFrame class. When I use setContentPane(Container ..), the previously existing contentPane remains in the stack. I have tried nullifying getContentPane(), and all manner of things, but, each time I use setContentPane, I have another instance of a JPanel in the stack.
I'm using code similar to setContentPane(new CustomJPanel()); and each time the user changes screens, and a similar call to that is made, the old CustomJPanel instance remains in the stack. Can anyone suggest a way around this? On their own the panels do not take up very much memory, but after several hours of usage, they will build up.I tried what you suggested; it only resulted in a huge performance decrease. The problem with memory allocation is still there.
Here is the method I use to switch screens in my app:
public static void changeScreen (JPanel panel){
try{
appFrame.setTitle("Wordinary : \""+getTitle()+"\"");
appFrame.setContentPane(panel);
appFrame.setSize(appFrame.getContentPane().getPreferredSize());
appFrame.getContentPane().setBackground(backColour);
for (int i = 0; i < appFrame.getContentPane().getComponents().length; i++)
appFrame.getContentPane().getComponents().setForeground(textColour);
//System.out.println("Background colour set to "+backColour+" text colour set to "+textColour);
appFrame.validate();
catch (Exception e){
//System.out.println("change");
e.printStackTrace();
And it is called like this:
changeScreen(new AddWordPanel());The instantiation of the new instance is what is causing the memory problems, but I can't think of a way around it. -
Problem with Outer and Inner Classes....or better way?
Right now I'm trying to create an Inner class.
My .java file compiles ok, and I create my jar file too.
But when I try to instantiate the Inner class, it fails:
java.lang.NoClassDefFoundError: com/myco/vlXML/vlXML$vlDocument.
Here's the class code:
public class vlXML{
private ArrayList myDocList=new ArrayList(); //holds documents
public vlXML(){
private class vlDocument{
public vlDocument(){
//stuff goes here
public vlDocument vlDOC(){
return new vlDocument();
public void addDocument(){
vlXML xxx=new vlXML();
vlDocument myDoc=xxx.vlDOC();
myDocList.add(myDoc);
public int getNumDocs(){
return myDocList.size();
}Then, from a jsp page, I call:
vlXML junk1=new vlXML();
junk1.addDocument();...and get the error...
Can someone help me figure out why it's failing?
Thanks....You nailed it - thanks....(duh!)
While I have your attention, if you don't mind, I have another question.
I'm creating a Class (outer) that allows my users to write a specific XML file (according to my own schema).
Within the XML file, they can have multiple instances of certain tags, like "Document". "Document"s can have multiple fields.
Since I don't know how many "Documents" they may want, I was planning on using an Inner Class of "Document", and then simply letting them "add" as many as necessary (thus the original code posted here).
Does that seem like an efficient (logical/reasonable) methodology,
or is there there something better?
Thanks Again... -
JBO:33001 bc4j.xcfg file not found in class path
Hi,
I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
1. I have this file in my jar file.
2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
Still no solution.
Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
Waiting for a reply from Jdev team very much...
( I just posted in the other thread which is pretty old, dated backto May 2001, which was relevant to this error. Just to make sure it is noticed, I am posting it seperately too)
Thanks
Hari(2/3/02)Hi All,
For those who are following this thread, I got a solution for this error with the help of Jdev Team.
This solution may work, if you have deployed your application in Tomcat4.0.1. This is the environment in which I work and tested.
As you may be aware, Tomcat ignores value in CLASSPATH variable.
To see any files that are existing or newly deployed, it has it own way of detecting it.
Addition information on Tomcat working, you can follow this link,
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
Coming to point, Tomcat has got five classloaders and each classloader invoked, looks in their related directories for files in following order.
1. /WEB-INF/classes of your web-application
2. /WEB-INF/lib/*.jar of your web application
3. BootStrap classes of your JVM (Tomcat's $JAVA_HOME/jre/lib/ext)
4. System class loader classes($CATALINA_HOME/bin/bootstrap.jar,CATALINA_HOME/lib/tools.jar)
5. $CATALINA_HOME/common/classes
6. $CATALINA_HOME/common/lib/*.jar
7. $CATALINA_HOME//classes
8. $CATALINA_HOME/lib/*.jar
So All your individual application related files should be deployed in your application's WEB-INF/classes or WEB-INF/lib directory accordingly.
If your application files are unpacked, they should be deployed or copied under WEB-INF/classes directory
if the files are within a jar, they should be under WEB-INF/lib directory.
If your Jar-files contains bc4j components, then those jar files should be deployed under WEB-INF/lib directory. Also,do the next step to copy all relavant BC4J runtime libraries under lib directory.
IMPORTANT: Please remember to copy and paste all the required BC4j runtime libraries in the Same WEB-INF/lib directory along with your application jar files. This is the real reason which can solve this JBO:33001 to disappear. It worked for me.
To configure your directory for tag-lib uri's, use web.xml to set the taglib-uri attribute.
Put your web.xml and DataTags.tld in the WEB-INF directory.
Your simple web.xml may look like as follows.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<taglib>
<taglib-uri>
/webapp/DataTags.tld
</taglib-uri>
<taglib-location>
/WEB-INF/DataTags.tld
</taglib-location>
</taglib>
</web-app>
You may then modify this web.xml to suit further requirements of your application.
Remember to stop and restart the Tomcat Server (service) by using shutdown and startup scripts after updating any jar files/class files/ JSP or source files deployed in Tomcat.
Sometimes, only this helps even though your context's reloadable attribute is set to true in Tomcat Server's server.xml file.
Hope this above information helps you to solve this error in Tomcat environment. My Sincere thanks once again to Juan and Jdev team for their help and efforts to solve this problem.
Thanks
Hari -
Help Counting Vowels and Consonants using a class
I'm currently working on a class project where I need take a user inputed string and count how many vowels and/or consonants are in the String at the user discretion. I have the main logic program working fine. However, the trouble I'm running into is how to take the string the user inputed and pass that data into the class method for counting.
Here is the code for the program:
package vowelsandconsonants;
import java.util.Scanner;
public class VowelConsCounter {
public static void main(String[] args) {
String input; //User input
char selection; //Menu selection
//Create a Scanner object for keyboard input.
Scanner keyboard = new Scanner(System.in);
//Get the string to start out with.
System.out.print("Enter a string: ");
input = keyboard.nextLine();
//Create a VowelCons object.
VowelCons vc = new VowelCons(input);
do {
// Display the menu and get the user's selection.
selection = getMenuSelection();
// Act on the selection
switch (Character.toLowerCase(selection)) {
case 'a':
System.out.println("\nNumber of Vowels: " +
vc.getNumVowels());
break;
case 'b':
System.out.println("\nNumber of consonats: " +
vc.getNumConsonants());
break;
case 'c':
System.out.println("\nNumber of Vowels: " +
vc.getNumVowels());
System.out.println("Number of consonants: " +
vc.getNumConsonants());
break;
case 'd':
System.out.print("Enter a string: ");
input = keyboard.nextLine();
vc = new VowelCons(input);
} while (Character.toLowerCase(selection) != 'e');
* The getMenuSelection method displays the menu and gets the user's choice.
public static char getMenuSelection() {
String input; //To hold keyboard input
char selection; // The user's selection
//Create a Scanner object for keyboard input.
Scanner keyboard = new Scanner(System.in);
//Display the menu.
System.out.println("a) Count the number of vowels in the string.");
System.out.println("b) Count the number of consonants in the string.");
System.out.println("c) Count both the vowels and consonants in the string.");
System.out.println("d) Enter another string.");
System.out.println("e) Exit the program.");
//Get the user's selection
input = keyboard.nextLine();
selection = input.charAt(0);
//Validate the input
while (Character.toLowerCase(selection) < 'a' ||
Character.toLowerCase(selection) > 'e') {
System.out.print("Only enter a,b,c,d or e:");
input = keyboard.nextLine();
selection = input.charAt(0);
return selection;
class VowelCons {
private char[] vowels;
private char[] consonants;
private int numVowels = 0;
private int numCons = 0;
public VowelCons(String str) {
public int getNumVowels() {
return numVowels;
public int getNumConsonants() {
return numCons;
private void countVowelsAndCons() {
for (int i = 0; i < total; i++) {
char ch = inputString.charAt(i);
if ((ch == 'a') || (ch == 'A') || (ch == 'e') || (ch == 'E') || (ch == 'i') || (ch == 'I') || (ch == 'o') || (ch == 'O') || (ch == 'u') || (ch == 'U')) {
numVowels++;
} else if (Character.isLetter(ch)) {
numCons++;
}The UML given to me by my instructor calls for the counting method to be private. Being that I'm not too familiar with Java syntax I did not know if that may cause a problem with passing the user's input into that method.Well the only compilers i get are due to the code:
private void countVowelsAndCons() {
for (int i = 0; i < total; i++) {
char ch = inputString.charAt(i);
if ((ch == 'a') || (ch == 'A') || (ch == 'e') || (ch == 'E') || (ch == 'i') || (ch == 'I') || (ch == 'o') || (ch == 'O') || (ch == 'u') || (ch == 'U')) {
numVowels++;
} else if (Character.isLetter(ch)) {
numCons++;
}However, that is due to the fact that i have no data for those variables to use. I'm pretty much stuck on how to get the string the user inputs into that method shown above so the code can perform the task of counting the vowels and consonants.
If i comment out the code within that function the program compiles and will allow me to enter the string and use the options but since i can't figure out how to pass the input to the counting method the program returns 0 for everything. -
Help - Class name and descriptions for a function location.
Hi Guys
i have to write a report that displays the class and class descriptions for a function location. the user passes in either the function location(TPLNR) or the class name and the report should display the the class characteristics and resp. values. Is there a FM that i coud use?
please help.
many thanks.
seelan.sadiepu1 wrote:
When I set up Words with Friends on my Fire it asked for my username and password which from a previous reply to my inquiry above stated that the S 3 doesn't store due to privacy issues. I have tried all my usual combinations of usernames and passwords and my Fire won't let me access the game as it keeps telling me that one or the other is not correct. I have deleted the app from my Fire and re-downloaded it but have the same error comes up. I have accessed the Words with Friends support both on my phone and their website but there is no live chat. I might have to take both to a Verizon store. Also, my Fire won't let me access the game without a correct username and password. To say that I am frustrated would be an understatement as well I have tried everything I can think of with no luck! Thanks for any help you can give!
Did you use facebook to log in?
Verizon will not be able to help you retrieve any of the information you need. You will have to contact Zynga. -
Hi all, I am new in java card development.
This is my environment setting:
@echo off
set JC_HOME=C:\JavaCard\java_card_kit-2_2
set JAVA_HOME=C:\j2sdk14103
set PATH=.;%JC_HOME%\bin;%PATH%
I have created the Wallet applet according to 'Zhiqun Chen" text book and named it WalletApp.java.
I have compiled this file to a class file.
This is where is I saved my file
C:\JavaCard\java_card_kit-2_2\samples\src\com\sun\javacard\samples\WalletApp\WalletApp.java.
But I don't really understand how to convert the class file.
May I know what is this for?
-out EXP JCA CAP
-exportpath
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1
com.sun.javacard.samples.HelloWorld.HelloWorld
com.sun.javacard.samples.HelloWorld
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
must save this in what file?
I tried to type in the command line below (and the result):
C:\JavaCard\java_card_kit-2_2\samples>converter -config scr\com\sun\javacard\sap
les\Wallet\Wallet.opt
error: file scr\com\sun\javacard\saples\Wallet\Wallet.opt could not be found
Usage: converter <options> package_name package_aid major_version.minor_ver
sion
OR
converter -config <filename>
use file for all options and parameters to converter
Where options include:
-classdir <the root directory of the class hierarchy>
set the root directory where the Converter
will look for classes
-i support the 32-bit integer type
-exportpath <list of directories>
list the root directories where the Converter
will look for export files
-exportmap use the token mapping from the pre-defined export
file of the package being converted. The converter
will look for the export file in the exportpath
-applet <AID class_name>
set the applet AID and the class that defines the
install method for the applet
-d <the root directory for output>
-out [CAP] [EXP] [JCA]
tell the Converter to output the CAP file,
and/or the JCA file, and/or the export file
-V, -version print the Converter version string
-v, -verbose enable verbose output
-help print out this message
-nowarn instruct the Converter to not report warning messages
-mask indicate this package is for mask, so restrictions on
native methods are relaxed
-debug enable generation of debugging information
-nobanner suppress all standard output messages
-noverify turn off verification. Verification is default
*********************************************************May I know What is the correct command line to convert the class file and what must I do to before converting the class file?
I saw some article saying we must use JDK1.3, is it a must?
Your solution is highly appreciated.
Thank you!Hi Ricardo,
I saved the file below as WalletApp.opt in the directory of scr\com\sun\javacard\samples\WalletApp
-out EXP JCA CAP
-exportpath c:\javacard\java_card_kit-2_2\api_export_files
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2:0x1 WalletApp.WalletApp
WalletApp 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2 1.0
But I still have the problem below:
C:\JavaCard\java_card_kit-2_2\samples>converter -config scr\com\sun\javacard\sam
ples\WalletApp\WalletApp.opt
error: file scr\com\sun\javacard\samples\WalletApp\WalletApp.opt could not be fo
und
Usage: converter <options> package_name package_aid major_version.minor_ver
sion
OR
converter -config <filename>
May I know What's wrong with my command or file?
Where can I download JDK because what I can find is J2SDK.
Thank you! -
How can i display the result of java class in InputText ?
Hi all,
How can i get the result of java class to InputText Or OutputText ???
also can every one in the forum give me road map for dealing with java in oracle adf because i'm beginner in oracle adf
i saw some samples in oracle adf corner but it's difficult for me.User,
Always mention your JDev version, technologies used and clear usecase description (read through this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56)
How can i get the result of java class to InputText Or OutputText ???Can you elaborate on your requirement? Do you mean the return value of a method in a class as output text? Or an attribute in your class (bean?) as text field?
-Arun -
AS3: How to create one base class for classes loaded in multiple swfs?
Our application have 3 different modules and all use
fscommand and ExternalInterface alot. Now the problem is we are
combining all those modules, but they all will reside in different
swfs. Is there any way that they extend to same base class and its
static members have only one instance accessible by all
three?Hi,
You can achieve this via Workshop 9.2 by using the exported Ant script for your project as follows:
-Ensure that all Jars needed to resolve com.bea.p13n.property.EntityPropertyManager (this particular class is found in weblogic92/common/p13n/lib/p13n_ejb.jar) and all referenced classes are added to the Java build path for your WebLogic EJB project (Properties->Java Build Path->Libraries)
-Export the "Workshop Ant Script" for your WebLogic EJB project (File->Export->Workshop Ant Script); this will generate a "build.xml" Ant script under your project root directory.
-Edit this default build script as follows: in the call to the "ejbgen" task within the "build" target, add the attribute: propertyFile="ejbgen.properties"
-Create a file "ejbgen.properties" under the root of your WebLogic EJB project and add the following entry:
YourSessionBeanClassName.remote.baseClass=com.bea.p13n.property.EntityPropertyManager
-Add a "<path refid="java.classpath"/>" within the "<classpath>" for the "java" task element that calls "weblogic.ejbc" (this will ensure that the p13n classes are resolved by EJBC)
Follow the instructions for executing the Ant build script found here: http://edocs.bea.com/workshop/docs92/ws_platform/ideuserguide/conUseCustomAntBuild.html
For more information on the EJBGen property file support, see: http://e-docs.bea.com/wls/docs92/ejb/EJBGen_reference.html -
How do I find classes in a package
Hi,
I am working on an automation tool which is to be used for testing public API's in our product. The tool is supposed to work this way:
1. A developer of the API adds a new java file containing the test code for the API in a particular package (which the tool defines). Then he compiles and places the stuff in a jar. There is also a driver class in this same package path defined by the test tool. E.g.
driver class: com.aaa.bbb.DriverClass
new API test file: com.aaa.bbb.TestFile
Now the driver file's job is to find out all the other classes in this particular package and then do some processing. When I tried doing the getPackage() on this driver class to find out about the package I got back a null.
Question 1: How can I get the package for a particular class (An ugly way to do this would be to strip it out from the classname)
Question 2: How can I find out what other classes are there in a package?
Thanks in advance on this.
Nikhil Singhal
You can also send me mails at
[email protected]hai
i have the same problem to finding the classes in package...
in my case i know the jars name and i have loaded
classes using code
ResourceBundle bundle = ResourceBundle.getBundle("source\\ClasssPath");
StringTokenizer stToke = new StringTokenizer(bundle.getString("ClassPath"),";");
String temp;
ClassLoader classLoader = ClassLoader.getSystemClassLoader();
while(stToke.hasMoreTokens())
temp = stToke.nextToken().trim();
if(temp.endsWith(".jar"))
JarFile jar = new JarFile(new File(temp));
Enumeration en = jar.entries();
String pathStr;
while(en.hasMoreElements())
pathStr = en.nextElement().toString();
System.out.println("pathStr ="+pathStr);
if(pathStr.endsWith(".class"))
System.out.println( classLoader.getResource(pathStr));
System.out.println(classLoader.loadClass(pathStr.substring(0,pathStr.indexOf(".class")).replace('/','.').trim()));
else classLoader.loadClass(temp);
here i am getting the classes in that package using code
String[] filLis = new File("//it//sella//converter//ptlf//startup//").list();
int length = filLis.length;
while(length-- >0)
System.out.println(">"+filLis[length]);
but its returnign the class when this classes in locale folder(i.e)its not getting the classes in loaded memory...
so how to retrieve the class files names using package structure name...
(i am having more then 20 jars files, inthat inside the jar samepackage structue may appear in more then one jars )
pls help me in this field..
Thanx -
Can I use classes and methods for a maintenance view events?
Hello experts,
Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!Hi viraylab,
1. The architecture provided by maintenance view
for using EVENTS and our own code inside it -
It is provided using FORM/PERFORM
concept only.
2. At this stage,we cannot use classes.
3. However, inside the FORM routine,
we can write what ever we want.
We can aswell use any abap code, including
classes and methods.
(But this classes and methods won't have any
effect on the EVENT provided by maintenance view)
regards,
amit m.
Maybe you are looking for
-
Error while opening a report in report Builder
Hello experts, My oracle apps version is R12.1.3 I am getting an error message when opening a report in report builder. Warning : Opening a report saved with a newer version of Reports Builder. Functionality may be lost. Continue?? What should i do n
-
XML Sax Exception with 9.2.0.5 express*.jar files for Olap API
I was using the olap_api_92.jar that came with jdeveloper for the olap api and having a coding problem.. In trying to see if I could resolve the previous problem, I set my classpath to use the jar files provided with the 9.2.0.5 install for AiX.. all
-
I can't manually drag files to/from my external hard drive to my macbook air!
My laptop is running on 10.9.4 (freshly installed, quite literally two days ago). I have all permissions to read and write on my hard drive, and it is formatted in MS-DOS (FAT32). It worked yesterday when I moved music on the laptop but now when I tr
-
GuestDisabled property = false... Weblogic 6.1 sp1 Windows 2000
GuestDisabled property = false... Weblogic 6.1 sp1 Windows 2000. But I still can connect without principal and credentials (as guest :) ) to Weblogic. Could someone check if it is true or not? Thanks in advance, Anton
-
Offcycle error and payroll control record
hi experts, i faced a error in offcycle payroll processing. i did exit payroll for april 2008 and maintained a data in infotype 267 for bonus in 15.05.2008 for 50 employees in bulk. i want to run offcycle payroll thro normal payroll driver on 15.05.2