How to preverify all classes under a directory and subdirectories?
I have compiled all my java codes into class files in "build/classes" directory. Now I am trying to preverify the class files with the following command:
preverify -classpath /opt/midp/classes:build/classes -d build/preverified build/classes
However the command completes execution and when I check "build/preverified" directory, I find it empty. I would like to mention that "build/classes" contains a directory structure of "com/hp/...."
Could someone please suggest how to do it successfully?
If you use Chris Poole's XUTL_FTL package, I believe that contains functions that allows you to query the directory contents.
http://www.chrispoole.co.uk/apps/xutlftp.htm
Edited by: BluShadow on Jan 13, 2009 1:54 PM
misread the original post
Similar Messages
-
How to get all users under an organizations?
Hello everyone.
Just want to know if anyone knows how to get all users under a particular organization.
From the Search User form, I found they may kind of user such attribute conditions:
MemberObjectGroup
is in
XXXX(organization)
But unfortunately, the "is in" is not a valid AttributeConditionOperator, so besides using "recursive" self-written function, anyone knows any possible buit-in trick?Here is my solution:
<Rule'>
<RuleArgument name='organization'/>
<RuleArgument name='context'/>
<block>
<defvar name='orgs'>
<new class='java.util.ArrayList'/>
</defvar>
<invoke name='getChildObjectGroupNames'>
<invoke name='getObject' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<s>ObjectGroup</s>
<ref>organization</ref>
</invoke>
<ref>orgs</ref>
</invoke>
<append name='orgs'>
<ref>organization</ref>
</append>
<invoke name='getUsers' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>MemberObjectGroups</s>
<s>in</s>
<ref>orgs</ref>
</new>
</list>
</map>
</invoke>
</block>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</Rule> -
How to enable all options under "Text Edits"
Hi,
How to activate all options under "text edits" see screenshot.Hi,
I discovered, these options are not enabled for scanned PDF files.
Thank You -
How to display all the under menus options when pressing the main menu on adobe muse?
How to display all the under menus options when pressing the main menu on adobe muse?
How to display all the under menus options when pressing the main menu on adobe muse?
-
How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9
I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
Inside the MyReport.rpt there is two subreport name :
1. MySubReport1
2. MySubReport2
My Question is :
How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
I try to using command :
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptSub=oRptOpen.OpenSubreport("MySubReport1")
oRptSub=oRptOpen.OpenSubreport("MySubReport2")
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
but only show Main Report (view tab name : Preview)?
Did I miss any command before I call oRptView.ViewReport?Your right, there is only one tab to view the report.
To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
http://diamond.businessobjects.com/robhorne</a> -
How to erase all data on macbook pro and reinstall operating system
how to erase all data on macbook pro and reinstall operating system
OS X Snow Leopard
https://support.apple.com/en-us/HT3910
http://www.thesafemac.com/how-to-reinstall-mac-os-x-from-scratch/
OS X Yosemite
https://support.apple.com/kb/PH18869?locale=en_US&viewlocale=en_US
Best. -
sold my ipad today. the concern is how to access all info stored in cloud and if possible eventualy merge data into new andriod tablet. Thanks all of you who respond.
>
<IfModule mod_weblogic.c>
WebLogicCluster 127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7003,127.0.0.1:7103,127.0.0.1:7104
MatchExpression /app1
</IfModule>
<Location /weblogic>
SetHandler weblogic-handler
WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7103,127.0.0.1:7104
DebugConfigInfo ON
PathTrim /weblogic
</Location>
<IfModule mod_weblogic.c>
WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
MatchExpression /app2
</IfModule>
<Location /weblogic>
SetHandler weblogic-handler
WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
DebugConfigInfo ON
PathTrim /weblogic
</Location>
>
This configuration is weird little bit. There is MatchExpression /app1 and MatchExpression /app2 and at the same time two <Location /weblogic> sections. Are you sure you understand what that configuration stands for?
Try something like this ...
<Location /app1>
SetHandler weblogic-handler
WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7103,127.0.0.1:7104
DebugConfigInfo ON
</Location>
<Location /app2>
SetHandler weblogic-handler
WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
DebugConfigInfo ON
</Location>
where /app1 and /app2 are contexts of your weblogic applications.
http://download.oracle.com/docs/cd/E11035_01/wls100/plugins/apache.html
http://httpd.apache.org/docs/2.0/mod/core.html#location -
How to read all files under a folder directory in FTP site
Hi Experts,
I use this SQL to read data from a file in FTP site. utl_file.fopen('ORALOAD', file_name,'r');
But this need to fixed file name in a directory. However, client generate output file with auto finename.
SO do we have any way to read all file by utl_file.fopen('ORALOAD', file_name,'r');
We need to read all file info. because client claim for security issue and does not to overwirte output file name,
we must find a way to read all file in output directory.
Thanks for help!!!
JimIf you use Chris Poole's XUTL_FTL package, I believe that contains functions that allows you to query the directory contents.
http://www.chrispoole.co.uk/apps/xutlftp.htm
Edited by: BluShadow on Jan 13, 2009 1:54 PM
misread the original post -
How to remove all files in a directory in java?
I have tried method delete() of File ,
but no effect!
can anyone help me!
thank youSo, you have a directory and you want to delete all files in the directory. Here is some (untested) code:
File dir = new File("C:\\tempdir");
File[] files = dir.listFiles();
for (int i = 0; i < files.length; ++i) {
if (files.isFile()) {
files[i].delete();
Jesper -
How to Zip server files(in a directory) and throwing back to client
Can someone tell me how to zip all the files in a particular directory of my web application and throwing back to client to give option for save that zipped file.
i have used the below used function to zip in servlet. But I cann't zip a particular directory of my application in server.
Please help
private void zipDir(String dir2zip, ZipOutputStream zos)
try
//create a new File object based on the directory we
// have to zip File
File fileDir2Zip = new File(dir2zip);
System.out.println("is directory ..."+fileDir2Zip.isDirectory());
//get a listing of the directory content
String[] dirList = fileDir2Zip.list();
for(int i = 0 ; i < dirList.length ; i++)
System.out.println("Dir list ..."+dirList);
byte[] readBuffer = new byte[2156];
int bytesIn = 0;
//loop through dirList, and zip the files
for(int i=0; i<dirList.length; i++)
File f = new File(fileDir2Zip, dirList[i]);
if(f.isDirectory())
//if the File object is a directory, call this
//function again to add its content recursively
String filePath = f.getPath();
zipDir(filePath, zos);
//loop again
continue;
//if we reached here, the File object f was not
//a directory
//create a FileInputStream on top of f
FileInputStream fis = new FileInputStream(f);
//create a new zip entry
ZipEntry anEntry = new ZipEntry(f.getPath());
//place the zip entry in the ZipOutputStream object
zos.putNextEntry(anEntry);
//now write the content of the file to the ZipOutputStream
while((bytesIn = fis.read(readBuffer)) != -1)
zos.write(readBuffer, 0, bytesIn);
System.out.println("Last");
//close the Stream
fis.close();
catch(Exception e)
e.printStackTrace();Hi
Whatever file exist in directory should execute with out any condition because they delete all files after exection of my process chain. They are using another process chain once a day for deletion of all files in that directory.
So directory always contains fresh files.
Here by using routine in infopackge i am unable to run all files one by one at a time.
As of my knowledge by using infopackage we can run only one file at a time.
Here my question is , can we run more than one file in single run of infopackage?
or can we have any function module to run the infopackage from externally? so that i can use function module in abap program? any ideas..
Regards
Raju -
How to DeAssociate one DC under one SCA and Associate to another SCA
Hi All,
Can any body tell me, is it possible to DeAssociate DC under one SCA and same dc associate to another SCA?
If possible what is the steps to be implemented?
Regards
VijayHi,
This link will solve your problem.
WebDynpro DC -create and use
Correct steps to use Java class in WD Java DC from another WD Java DC
For any queries feel free to ask.
Regards,
Praveen -
How to delete all file in a directory
Hi,
Myself is Lokesh....can anyone tell me how can we delete all existing mail file which i kept in linux (PATH IS: /usr/share/mailfile/)...the mail file extension is *.MAIL. Please help me in sortout this problem...See listFiles (FileFilter) and delete ().
-
How to get all files in one directory
Hi there,
is there any way to get all the files in one directory?
e.g. a method
File[] getAllFiles(String directory){
Thank youJust out of interest, which part of the File API was confusing?
http://java.sun.com/j2se/1.5.0/docs/api/index.html
If you look down the left-hand side, you'll see a frame listing "All File". If you select "File" from that list, it opens up the API in the right-hand frame. Quite near the top you'll find "listFiles".
I only ask as this (and other questions easily answered by looking at the API) are frequently asked. Did you overlook it when you read the API or did you just not read it?
I really want to know. I think there is scope to cater for that behaviour within this site. A nice API finder would be good; something more intelligent than the search function (which people use less frequently even than the API docs). -
How to get all items under a parent item in a tree control
Hello,
I have 2 questions regarding a tree control:
1) Is there any way to specify a parent item tag and get an array of ALL its sub item tags? For example, in the attached vi, specify the Parent#2 parent tag and get an array containing Item#P21 and Item#P22
2) Is there a way to specify a range to the ActiveCell property. For example, all items from line#1 to line number#3
Any ideas?
Attachments:
Tree example.vi 6 KBMentos wrote:
1) Is there any way to specify a parent item tag and get an array of ALL its sub item tags? For example, in the attached vi, specify the Parent#2 parent tag and get an array containing Item#P21 and Item#P22
Did you try a search? There's no direct way of doing this. You have to navigate the tree and build up an array. You can find an example here: http://forums.ni.com/t5/LabVIEW/get-all-children-of-a-parent-in-tree/td-p/729548
2) Is there a way to specify a range to the ActiveCell property. For example, all items from line#1 to line number#3
No. (It's called ActiveCell, not ActiveCells) Presumably you are trying to perform an operation on multiple items. Unfortunately, you need to use a loop. You should defer panel updates if you're doing this a lot. -
How to change all class name on my java program?
I want to change class name like this. This class name changes into a, b, c, d, e,.....
MyClass m = new MyClass(); ------> a m = new a();
MyClass2 m2 = new MyClass2(); ------> b m2 = new b();
before I saw this code.
I think it is can be using tool or program.
anybody know?
thanks in advance.Google for Java obfuscator
Maybe you are looking for
-
FAQ: BC-SSF (Secure Store & Forward)
Version: 20060317 Q: Where can i find more information to the BC-SSF interface ? A: Have a look on our ICC webpage in the SDN: SAP NetWeaver - Secure Store & Forward and Digital Signatures (BC-SSF) [original link is broken] Q: What costs are arising
-
Replication Problem in BI.7
Hi Experts, I have enhanced an existing custom datasourc which is built on Table. Once i replicated it the new fields are not visible in the datasource in the BI Side andthe datasource became inactive . This is new issue in BI.7. if any one came acro
-
Another blue screen/display driver
I've reinstalled windows on my notebook, gotten all available updates from microsoft and HP using MS updates and the HPSA. I havent had a problem until I viewed a video clip on msn.com. Then I get a Blue screen producing this Tech information.Problem
-
I am unable to load one particular website from my pc,
i was visiting hautelook.com every day for months. just today the website will not load. all other websites load so I am terribly confused. i have reset firefox. cleared all caches and history, unplugged modem, restarted computer several times. ran s
-
Adobe student editions some questions
hi, i have bought the student edition of ps and lr since light room 2, i have just bought lr4 do i need the last edition of lr to upgrade to or do ineed all the lr software? or do i not need any of them? if i dont need them what can i do with all the