Converting ImageIcon in Swing.Please GUIDE.
Folks
I am using Java Swing,
I have an ImageIcon object which I need to use as an Image,bscause using Image,I can
enlarge the image icon.
How can I convert an ImageIcon to an Image? Is this possible?
ImageIcon imageIcon = gotImageIcon();
//*** Now how do I use this as an Image?
You might begin by reading the API.
Similar Messages
-
Hi;
Could anyone help me to convert my example code from applet to swing,please, thank
import java.awt.*;
import java.applet.*;
import java.lang.Math;
import java.awt.Font;
import java.lang.Integer;
/*** Main class == Applet ***/
public class Suffix extends Applet implements Runnable {
private Thread main;
public s_tree _tree=null;
public node nd=null;
public boolean userPause=false,resumed=false;
private String str[]={"GOOGOL$","Paused","Resumed","Compacting","Done"};
public Color bl=Color.blue,rd=Color.red;
public Font fnt;
public int mode=3,delay=3000;
private char alph[]={'$','Q','W','E','R','T','Y','U','I','O',
'P','A','S','D','F','G','H','J','K','L',
'Z','X','C','V','B','N','M'};
/*** initialisation function. It is the first Funct to be called ***/
public void init() {
// Temp data
int temp=0,nxx=30;
// Ini. of fnt , the font size + style used by this applet.
fnt=new Font("Denis",1,25);
/*** parsing command parameters ***/
// try {
//DELAY VALUE PARAM
String param=getParameter("DELAY");
if (param!=null) {
temp=Integer.parseInt(param);
if ((temp>500)&&(temp<6000)) delay=temp;
//x LEFTMOST coordinate
param=getParameter("X");
if (param!=null) {
temp=Integer.parseInt(param);
nxx=temp;
//Base String parameter
param=getParameter("STRING");
if ((param!=null)&&(param.length()<15)) {
str[0]=param;
// } catch (ParseException e) { showParseError(e); }
// Allocating mem for _tree + initialize it .
_tree=new s_tree(str[0],fnt);
// Override xx (left_bound) by the caller's or the default value
_tree.xx=nxx;
/*** "animation loop is controled here" ***/
public void run() {
while(true) {
try {
//delay the process for time==delay
Thread.sleep(delay);
} catch (InterruptedException e) {}
//controls animation loop
repaint();
/*** override APPLET's paint function ***/
public void paint (Graphics g) {
//Output graphics
update(g);
/*** Updates the graphics ***/
public void update (Graphics g) {
// Set font
if (g.getFont()!=fnt) g.setFont(fnt);
if ((userPause==false)&&(resumed==false)) // Is the applet paused ?
g.clearRect(0,0,1024,768); //clears the screen
if (_tree==null) { // if tree is not initialised
init();
//_tree.show(g);
} else {
if (mode==3) { // if graphics output mode is 3
if (nd!=null) nd._to_rd(false);
nd=_tree.step_compact(nd); //compacts the tree one step further
if (nd==null) // if tree is totally compacted ...
mode=4; //change the ani. mode to 4 (don't call compact)
else
nd._to_rd(true); //colors the next node to compact in red
// Draw the "titleviewport's" comment
g.setColor(bl);
g.drawString(str[mode],10,15);
_tree.show(g); //show tree
} else {
g.clearRect(0,0,200,25); //clears the "titleviewport to update it"
g.setColor(rd);
if (resumed==true){
resumed=false;
g.drawString(str[2],10,15);
else g.drawString(str[1],10,15);
/*** restart the animation process ***/
public void start() {
main=new Thread(this);
main.start();
/*** stops the animation ***/
public void stop() {
main.stop();
main=null;
/*** Handles the user's events (mouse , kbd , ... ***/
public boolean handleEvent(Event evt) {
if (evt.id==Event.MOUSE_DOWN) { //if mouse button have been pushed ...
if (main!=null && main.isAlive()) {
if (userPause) {
main.start();
resumed=true;
} else {
main.stop();
userPause= !userPause;
} else {
main= new Thread(this);
main.start();
userPause=false;
resumed=true;
repaint();
return true;
} else {
return super.handleEvent(evt);
/*** Linked List of node(s) ***/
class nodelist{
nodelist next=null;
node ptr=null;
public void nodelist(){};
/*** node of a structure tree ***/
class node {
// Relatives
public nodelist children=null;
public node parent=null;
// variables
public int maxchild=12,childnum=0,level=0;
public int center[]={0,0};
public int xlen=20,ylen=10,vspace=15,hspace=8;
public int x[]={0,0};
public boolean _ishidden=false;
private Color bk=Color.black,wh=Color.white,rd=Color.red;
// Node==red toggle variable
public boolean to_rd=false;
// node's text
public String label=null;
/*** initialisation of the node ***/
public node(int nx,int ny,int nxl,int nyl,node nparent,int nlevel,String nstr){
x[0]=nx; x[1]=ny;
xlen=nxl; ylen=nyl;
parent=nparent;
level=nlevel;
label=new String(nstr);
children=new nodelist();
/*** destroys the node ***/
public void destruct() {
// NOTE : not like C++ destructors . Do not confuse .
delete_subtree();
children=null;
parent=null;
bk=wh=rd=null;
label=null;
/*** Node to red toggle switch ***/
public void _to_rd(boolean b) {to_rd=b;};
/*** Adds a child to this node ***/
public void add_child(int nx,int ny,int nxl,int nyl,node nparent,int nlevel,
String nstr) {
if (childnum<maxchild) { // if 'legal' space left ...
if (children==null) { // if no nodelist attached ...
children=new nodelist(); //init. children
children.ptr=new node(nx,ny,nxl,nyl,nparent,nlevel,nstr); //create node
childnum++;
} else {
nodelist dummy=children;
// search for the last nodelist
while (dummy.next!=null) dummy=dummy.next;
dummy.next=new nodelist(); //adds a nodelist
dummy=dummy.next;
dummy.ptr=new node(nx,ny,nxl,nyl,nparent,nlevel,nstr); //create child
childnum++;
// Tree needs to be realigned
/*** adds a child and returns its address ***/
public node add_child_ret(int nx,int ny,int nxl,int nyl,node nparent,int nlevel,
String nstr) {
if (childnum<maxchild) {
if (children==null) {
children=new nodelist();
children.ptr=new node(nx,ny,nxl,nyl,nparent,nlevel,nstr);
childnum++;
return(children.ptr);
} else {
nodelist dummy=children;
// search for the last child
while (dummy.next!=null) dummy=dummy.next;
dummy.next=new nodelist();
dummy=dummy.next;
dummy.ptr=new node(nx,ny,nxl,nyl,nparent,nlevel,nstr);
childnum++;
return(dummy.ptr);
return(null);
// Tree needs to be realigned
/*** adds the node nchild as a new children ***/
public void add_child(node nchild) {
nodelist dummy=null;
dummy=children;
if (childnum<maxchild) {
if (children==null) {
children=new nodelist();
children.ptr=nchild;
childnum++;
} else {
while (dummy.next!=null) dummy=dummy.next;
dummy.next=new nodelist();
dummy=dummy.next;
dummy.ptr=nchild;
childnum++;
//Tree needs to restructured.
/*** deletes all childrens ***/
public void delete_subtree() {
while (childnum>0 && children!=null) { //while child exists , kill it
if (children.ptr!=null) {
children.ptr.destruct();
children.ptr=null;
children=children.next;
} else children=null;
childnum--;
/*** moves this node and its children horizontally ***/
public void move_tree(int nx) {
nodelist dummy=children;
x[0]+=nx;
while (childnum>0 && dummy!=null) {
if (dummy.ptr!=null) {
dummy.ptr.move_tree(nx);
dummy=dummy.next;
/*** removes the node from the tree (do not preserve order of ordered tree ) ***/
public void remove_node() {
nodelist dummy=children;
while(dummy!=null) {
if (dummy.ptr!=null){
parent.add_child(dummy.ptr);
dummy=dummy.next;
children=null;
//could call restructure tree here .
//don't forget to change the node's levels !!!
/*** show all nodes ***/
public void show_all(Graphics g) {
if (_ishidden==false) { //if not hidden
if (children!=null) { //if child exist
nodelist dummy=children; //temp var.
while(dummy!=null) { //while there is a child...
if (dummy.ptr!=null)
dummy.ptr.show_all(g);
dummy=dummy.next;
show_node(g);
/*** show nodes in preorder ***/
public int preorder_show(Graphics g,int label){
if (_ishidden==false) {
show_node(g/*,label++*/);
if (children!=null) {
nodelist dummy=children;
while(dummy!=null) {
if (dummy.ptr!=null) label=dummy.ptr.preorder_show(g,label);
dummy=dummy.next;
return(label);
/** show nodes in postorder ***/
public int postorder_show(Graphics g,int label){
if (_ishidden==false) {
if (children!=null) {
nodelist dummy=children;
while(dummy!=null) {
if (dummy.ptr!=null) label=dummy.ptr.postorder_show(g,label);
dummy=dummy.next;
show_node(g/*,label++*/);
return(label);
/*** show nodes in inorder ***/
public int inorder_show(Graphics g,int label){
if (_ishidden==false) {
if (children!=null) {
nodelist dummy=children;
if (dummy.ptr!=null) label=dummy.ptr.inorder_show(g,label);
dummy=dummy.next;
show_node(g/*,label++*/);
while(dummy!=null) {
if (dummy.ptr!=null) label=dummy.ptr.inorder_show(g,label);
dummy=dummy.next;
} else show_node(g/*,label++*/);
return(label);
/*** Restructure the coordinates of all nodes ***/
public int align(int min,Font fnt,int lev,Graphics g){
int i=min; //left bound
FontMetrics fntm=g.getFontMetrics(fnt); //used to know the text size
level=lev;
// node x and y radius are computed here
xlen=4+(int)(fntm.stringWidth(label)/2);
ylen=4+(int)(fntm.getHeight()/2);
if (children!=null) { //if child present ...
nodelist dummy=children;
while(dummy!=null) {
if (dummy.ptr!=null) i=dummy.ptr.align(i,fnt,lev+1,g); //align them
dummy=dummy.next;
x[0]=min+(int)((i-min)/2); //could be underflow so will be checked
x[1]=lev*(vspace+(ylen*2))+26;
// overflow should happen only when the parent node is larger than its children
if ((x[0]-xlen)<min) { //check uf underflow occurs.
move_tree(min+xlen-x[0]+1);
i=x[0]+xlen+5;
if (childnum==0) x[0]+=2;
return(i);
/*** returns the child following nd ***/
/*** if nd==null -> return 1st child ***/
/*** if nd==last children -> return null***/
public node next_child(node nd) {
nodelist dummy=null;
if (children==null) return(null);
if (nd==null) return(children.ptr);
dummy=children;
while (dummy.ptr!=nd) {
if (dummy.next!=null)
dummy=dummy.next;
else
return(null);
dummy=dummy.next;
if (dummy!=null) return(dummy.ptr);
else return(null);
/*** returns child with first letter==nh ***/
public node get_childd(char ch) {
nodelist dummy=null;
dummy=children;
while (dummy!=null) {
if (dummy.ptr!=null) {
if (dummy.ptr.label.charAt(0)==ch)
return(dummy.ptr);
dummy=dummy.next;
return(null);
/*** returns the nodelist containing nd ***/
public nodelist get_child(node nd) {
nodelist dummy=children;
while (dummy!=null) {
if (dummy.ptr==nd) return(dummy);
dummy=dummy.next;
return(null);
/*** outputs the node to Screen ***/
public void show_node(Graphics g) {
if (_ishidden==false) {
if (level>0) { //if it is not a root then draw link-line
g.setColor(bk);
g.drawLine(x[0],x[1]-ylen,parent.x[0],parent.x[1]+parent.ylen); //from this node to parent node
if (to_rd==false)
g.setColor(wh);
else
g.setColor(rd);
g.fillOval(x[0]-xlen,x[1]-ylen,xlen*2,ylen*2); //draws an oval
g.setColor(bk);
g.drawString(label,x[0]-xlen+4,x[1]+ylen-12); //output the text
/*** class which uses nodes to create a SUFFIX TREE ***/
class s_tree {
node root=null; // root node.
String str=null; // 'search' string
Font fnt=null; // font type
int xx=30; // left limit for graphics
/*** initialize a SUFFIX TREE with string==nstr and Font==nfnt ***/
public s_tree(String nstr,Font nfnt) {
str=new String(nstr);
fnt=nfnt;
create();
/*** uninitialize the structure **/
public void destruct() {
root.destruct();
str=null;
fnt=null;
/*** show the tree ***/
public void show(Graphics g) {
root.align(xx,fnt,0,g); // restructure node's coordinates
root.show_all(g); //show tree
/*** creates a tree structure from String=str ***/
public void create() {
node dummy=null;
root=new node(0,0,0,0,dummy,0," "); //create root
root.parent=null; //just to make sure ...
for (int i=0;i<str.length();i++) {
// Create subtree of root in the following way :
// create subtree ("ASDF$");
// " " ("aSDF$");
// " " ("asDF$"); ...
// where : the UPPERCASE letters is the part of the string sent to insert_string
insert_string(str.substring(i));
//root.align(0,fnt,0); //align root now ?
/*** creates a subtree of ROOT with String=nstr ***/
public void insert_string(String nstr) {
node dummy2=null,dummy=null;
int i=0;
dummy=root;
dummy2=root;
// As long as a children of dummy2 have the letter nstr[i] , dummy==thischildren
// It is used to make sure that a node does not have two children with the
// same letter
while (dummy2!=null) {
dummy2=dummy2.get_childd(nstr.charAt(i));
if (dummy2!=null) {
i++;
dummy=dummy2;
//create the nodes for the rest of the string
for(;i<nstr.length();i++) {
if (dummy!=null) dummy=dummy.add_child_ret(0,0,0,0,dummy,1,nstr.substring(i,i+1));
// Compacts the tree node by node and returns the next node to compact
// if node==null , compacts the first node ...
//Works in POST-ORDER
public node step_compact(node nd) {
node dummy=nd,dummy2=null;
nodelist ndlst=null;
// GOES TO THE LOWER LEFT CHILDREN
if (nd==null) { //first call !
dummy=root;
while(dummy.children!=null) {
if (dummy.children.ptr==null)
dummy.children=dummy.children.next;
else
dummy=dummy.children.ptr;
//*** tries to find a 'compactable' node ***
//*** It uses the POST-ORDER method ***
// if this node is not the last children then try to find next compactable node
// in the next children.
if (dummy.parent.childnum!=1) dummy=next_chain(dummy);
if (dummy==null) return(null); //fully optimized
//remove parent node.
/*** THIS IS WHERE COMPACTING TAKES PLACE **/
dummy2=dummy.parent.parent;
ndlst=dummy2.get_child(dummy.parent);
if (ndlst==null) return(null); //we've got a beeeeg problem if this happens ...
//*** merges the parent string with this one and delete parent .
dummy.label=dummy.parent.label.concat(dummy.label);
ndlst.ptr=dummy;
//delete parent .
dummy.parent=null;
dummy.parent=dummy2;
// root.align(0,fnt,0);
return(dummy);
/*** finds the next chain in the tree (i.e. the next compactable node) ***/
public node next_chain(node nd){
node dummy=null;
if (nd.parent==null) return(null); //finished ! This is the root
if (nd.parent.childnum==1) return(nd); //can be optimized
// finds the nd.parent's child following nd
dummy=nd.parent.next_child(nd);
if (dummy==null) // if OLD_nd==last child
return(next_chain(nd.parent)); //tries to find a chain upwards
else {
// OLD_nd was not the last child . nd==OLD_nd's next brother
// GOES TO THE LOWER LEFT most child of nd's subtree.
while(dummy.children!=null) {
if (dummy.children.ptr==null)
dummy.children=dummy.children.next;
else
dummy=dummy.children.ptr;
return(next_chain(dummy)); // returns the next compactable node
};First, show me the rupees! Show me the rupees!
-
Hello, can someone guide me on how to purchase ExportPDF please? i'm currently residing in South East Asia and it doesn't allow me to purchase the software that i need for my work. Please guide me. i need help badly.
Hi watanabei,
Please see Countries where ExportPDF is available for purchase. - Adobe Community. It's necessary to have a credit card billing address in one of the countries listed in this document. If ExportPDF is unavailable to you, you may want to consider an Acrobat subscription, which would also allow you to convert PDF files to Word and other format. For more information, see www.adobe.com/products/acrobat.html.
Best,
Sara -
I have downloaded & installed adobe creative suit cs2 version 6 but when I click the icon of adobe photoshop in desktop it is not opened & giving message " this application has failed to start because " ausba4.dll " was not found. reinstalling of the application may fix the problem " I have reinstall & opened many times but even then it is not opened. Please guide me accordingly.
I'd try disabling the Twain_32.8BA plugin in
C:\Program Files\Adobe\Adobe Photoshop CS2\Plug-Ins\Import-Export
You can disable the plugin by putting an ~ (tilde) in front of the name or moving the plugin to your desktop.
Then try photoshop cs2 and see if you still get the error message.
I suspect the error has to do with your scanner driver, since photoshop cs2 does not have an ausba4.dll -
My mac has a virus yes I'm 100% sure it is one i get all kinds of pop ups only in safari though please guide me on how to reset it or where to go from here in detail im new to macs
Please post a screenshot that shows what you mean. Be careful not to include any private information.
Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply. -
Dear Apple,
Please help me to find my iPad Air 2 64 GB and iPhone 5C 8GB. They're in IOS 8.0 maybe...I lost all of them last night. I set up icloud for my devices but i can't find them because they were not connect to the Internet. Please guide me other ways to find my "best friends". They're very important to me. Many important files for my job in here and it has sentimental value to me. My boyfriend gave it for me so i don't want to lose them. And because i just lost my iPad Air last 3 month, and now i just bought iPad Air 2 two months ago. I'm so sad and lost. I want to catch the thief to the police so bad because they keep my bag and many other important things. I can not do anything without them. Please help me and contact me via my email or my phone. Thank you very much. Hope to receive your answer soon.Hey there thaovy309,
Welcome to Apple Support Communities.
The linked article below provides a lot of great information and suggestions that should address your concerns about your data and finding your lost or stolen iPhone 5c and iPad Air 2.
If your iPhone, iPad, or iPod touch is lost or stolen - Apple Support
Take care,
-Jason -
Please guide me how to delete the OLD claimed trip details
Hi SAP Gurus
We have corrected the all the cliams by newly created an posted properly today , how ever they are struck now and since they are form old employees (2007-2008) , few are still active / terminated/ retiree staus cant delete them nor make it zero. But appear in our report as pending...
Please guide me how to delete the old trips.. your support really appreciated..
Thanks
ShanHi Shan,
As per my knowledge, no table should be deleted. Check the below link for more info.
http://help.sap.com/saphelp_erp60_sp/helpdata/en/73/6bf037f1d6b302e10000009b38f889/frameset.htm
<<removed>>
Thanks,
Praisty
Edited by: Matt on Jul 26, 2011 3:11 PM -
Link is not working for one role. how to check please guide.
Hi Expert,
I have a simple question but as don;t aware of some of the techincal area not able to understand where to check.
I have a link under document flow in offer( opportunity) where for one role sales support user the link is not happening. I have checked for other role its working fine.I understand that for this role the link will not work as per the role maintianed.
But where this link got maintained and how i will be able to check which link is tagged to which profile.
rolewise mappeing with link.
Please guide.
Prem.Hello Prem,
Please check the navigation bar profile from your business role.
Then go to the navigation bar profile settings, you can find the details settings there.
If it is a link under some work center, you need to start from the work center.
If it is a direct link, then start from the derect link group.
Hope this could be helpful.
Best regards,
'Maggie -
i want to reinstall moutain lion please guide me how to do it
Welcome to Apple Support Communities
Press Command and R keys when your Mac starts and reinstall OS X -
I have a Window 7 HP laptop. I want to install Snow Leopard on an external hard drive as the memory space on my laptop is very less. I have the original snow leopard disc and I think it's a retail version . Please guide me through the installation in details. Can you also please let me know about this boot camp.
You cannot. From a legal standpoint, the license agreement for OS X mandates that you run OS X only on Apple hardware. HP is not (yet) owned by Apple.
From a technical standpoint, your HP laptop doesn't use EFI, but rather an early predecessor called a BIOS. Apple is the only vendor of consumer computer hardware that uses EFI; other vendors reserve EFI for use in servers.
Secondly, Apple's operating systems support a rather limited number of configurations of video hardware and mainboard chipsets directly since they need only support those systems that they manufacture. You cannot use Windows software or drivers on OS X, so prior to installation, you would need to write your own hardware drivers for your laptop, create an OS X drive image on a Mac, and then modify that image with your drivers before putting it in the HP.
It will be simpler (and legal), to simply purchase a used Mac. Apple's online store has refurbished MacBook Airs starting at $850 and Mac Minis for $700. If you go to e-bay or craigslist, you'll find used Macs for considerably less. -
i have an iMac with mountain lion 10.8.3 with boot camp 5.0.2 .i installed windows 7 -64 bit with boot camp but the boot camp didn't install drivers for windows please guide me for trouble shooting .
Kappy wrote:
Boot Camp doesn't install the drivers. You have the drivers on a separate USB device if you followed directions. Once in Windows connect the USB drive with the driver software. It should startup automatically and install the drivers.
You don't even need to do that. As downloading the drivers from within Boot Camp Assistant can be unreliable, it is better to get the package directly from here:
http://support.apple.com/kb/DL1638
Copy the .zip file to a USB flash drive or burn it to a DVD in OS X. Install Windows as normal, insert the flash drive/DVD in Windows, copy the .zip file to the hard drive, extract it, then run the setup executable. -
I have forget my 4 digit passcode for my ipad 3 and exhausted all the attempts, Now the screen shows "ipad is disabled connect to itunes" How can I unlock my ipad now. Also I have not put "Find my iphone" in icloud as well. Please guide me to unlock it.
Also when I am trying to connect ipad to my windows PC, it shows, your software is up to date and later starts restoring while updating again. Then automatically it stops to update halfway and I have to repeat the process again and again, still in vain.
-
I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.
OS X can natively read NTFS of Windows, but not write to it.
Windows can't read or write to HFS+ of OSX, and that's a good thing from a security standpoint.
Ideally if you share files between operating systems you should have a FAT/MSDOS formated USB key or hard drive. (exFAT external drive if any of your files are over 4GB in size) both these formats are universal for OS X or Windows.
If you install software into Windows and OS X to read each others formats, then you have to pay to update/upgrade it deal with headaches.
If you swtich between Windows and OS X a lot, don't need full hardware performance for Windows, you may consider installing virtual machine software like VMFusion or Parallels which can take a copy of your Windows in Bootcamp and place it into OS X as a file then run that copy of Windows in a window in OS X like so.
Advantage here is you run most of your light weight Windows programs like this at the same time as OS X.
Benefit is you can run just about any Windows or Linux version and OSX server editions (not client versions)
Bootcamp only allows Windows 7, that's it now.
You'll also be interested in two fre pieces of software, Carbon Copy Cloner and Winclone on macupdate.com.
CCC clones OS X partition and Winclone clones the Bootcamp partition. Valuable for you.
Good Luck -
Problem in creating workspaces..Please guide
Hello All,
Am facing a problem in creating workspaces in DTR. Am working on EP7 SR2 (SP9)
Have read mostly all related posts on SDN but cannot catch the missing link...Please guide me for the same:
<u><b>setvars.bat</b></u>
@echo off
rem Default properties definition for the DTR Client Commandline Tool:
rem -
rem (1) Mandatory: DTR configuration folder:
set DTR_HOME=C:\Documents and Settings\RHunjan
set CFG_DIR=%DTR_HOME%\.dtr
rem Remark: How to find DTR_HOME folder?
rem - In Release 6.40:
rem The default location is C:\Documents and Settings\<user>\.sapnetweaver.
rem - In Release 7.1:
rem Start Netweaver Developer Studio and login to the configuration / client
rem where you would like to work, then choose the menu: 'file' -> 'Switch workspace'.
rem The upcoming dialog shows the currently used Eclipse workspace.
rem The DTR configuration folder is <currently used eclipse workspace>.jdi
rem (2) Optional: Folder with the definition of logging properties:
set LOGGING=%DTR_HOME%\logging.properties
rem (3) Default properties:
rem set DEFAULT_PROPERTIES=-Dvfs.configfolder=%CFG_DIR% -Dvfs.logging=%LOGGING%
<u><b>dtrshell.bat</b></u>
@echo off
rem Run DTR Commandline Shell:
rem -
rem (1) Get it running:
rem -
rem - Adapt configuration settings in setvars.bat.
rem - Uncomment the settings for the used archives
rem that fit to the currently used Netweaver Developer Studio.
call setvars.bat
set CLASS_PATH=
rem (2) Used Archives Settings:
rem -
rem Used Archives in 6.40 and 7.00 Netweaver Developer Studio installation:
rem -
set CLASS_PATH=%CLASS_PATH%;com_tssap_dtr_client_vfs.jar
set CLASS_PATH=%CLASS_PATH%;httpclient.jar
set CLASS_PATH=%CLASS_PATH%;httpclientext.jar
set CLASS_PATH=%CLASS_PATH%;com_tssap_dtr_client_commandline.jar
rem Archives from foreign Plugins:
set CLASS_PATH=%CLASS_PATH%;..\com.tssap.sap.libs.xmltoolkit\lib\sapxmltoolkit.jar
set CLASS_PATH=%CLASS_PATH%;..\com.tssap.sap.libs.logging\lib\logging.jar
set CLASS_PATH=%CLASS_PATH%;..\com.sap.tc.jarm\lib\jARM.jar
rem The recommended value for maximum heap size for the JVM to run DTR Commandline client is 256M or higher.
rem You can change the settings based on system resources available.
set VM_PARAMS=-Xmx256m
rem (3) Run DTR Commandline Shell:
rem -
java %VM_PARAMS% -classpath %CLASS_PATH% %DEFAULT_PROPERTIES% com.tssap.dtr.client.commandline.DTRShell %*
===================
I get an error saying:
<i><b>Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/tc/logging/Lo
cation
at com.tssap.dtr.client.commandline.DTRShell.<clinit>(DTRShell.java:21)</b></i>
Please guide......
Awaiting Reply.
Thanks & WArm Regards,
Ritu
Message was edited by:
Ritu HunjanHello Ritu,
the problem is probably in these lines:
rem Archives from foreign Plugins:
set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.xmltoolkitlibsapxmltoolkit.jar
set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.loggingliblogging.jar
set CLASS_PATH=%CLASS_PATH%;..com.sap.tc.jarmlibjARM.jar
For a NW04s studio these paths are not correct, the plugin directories have some version suffix.
rem Archives from foreign Plugins:
set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.xmltoolkit_2.0.0libsapxmltoolkit.jar
set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.logging_2.0.0liblogging.jar
set CLASS_PATH=%CLASS_PATH%;..com.sap.tc.jarm_2.0.0libjARM.jar
Please check the folder names in the /eclipse/plugins/ directory to verify that this is correct for your installation.
Regards,
Marc -
Step by step bapi to convert SAP to XML please its urgent
step by step bapi to convert SAP to XML please its urgent
full points if with full example and coding in ABAP,
Thank you,
Regards,
Jagrut Shuklayes i want to convert Catsdb table into xml format and safely in server, i.e secured place
Maybe you are looking for
-
Automatic shutdown of SAP Instance after installation of Dialog Instance
Hi all, We've upgraded our system from SAP4.6C to ECC6.0 running on Win2003 64 bits Oracle 10g. After upgrade, we installed Dialog instance (this dialog instance is running outside MS cluster) and it is running on Microsoft cluster. When we try to s
-
Making the Net Price on a PO line item 0 if Free Indicator set on PO line
Hello All, I have a requirement to make the Net Price on a PO line item 0 if Free Indicator (UMSON) is set on PO line. Please help me with an exit/badi using which this can be achieved. Thanks Indrajit
-
Fairy Tale Story Ending! iMac Related!
I would like to share my story from this past Christmas. So I buy my daughter the Imac21.5 for Christmas. I'm on detail away from home for the past year so I wanted to get her something special, she's 16. So since i'm in Georgia and she is in NY i'll
-
Hi all, I have encountered some trouble with the preloader in Captivate 3: I used the default preloader in a captivate project, and when I test it I see that the preloader image is not displayed until very late in the game, just a few seconds before
-
Instalo aplicaciones en mi ipod de primera generacion y se cierran