Finding total number of class files present inside jar
Is there any way to find the total numbef of class files present inside jar?
Any link will be helpful.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/jar/JarFile.html#entries()
You'll have to search through it.
Similar Messages
-
To find total number of files inside folder
Hai,
In knowledge management is there any option to find total number of files inside folder...
I also want to see the recently uploaded and modified documents in a seperate iview...
Iam using NW2004s SP8..
Very urgent..
Waiting for a positive reply..
Thanks®ards,
Kiruthika.SHi Kiruthika,
1. You only need the configarchive if you don't want create all the KM configuration objects mentioned in the guide manually. So, just create the objects mentioned there and you don't need the configarchive
Also, the scenario works also on 2004s.
2. Please check this thread on how to show the total number of files inside a folder:
https://forums.sdn.sap.com/thread.jspa?threadID=19610
3. It would be nice if you would consider rewarding the time people like Saravanan spend to investigate and answer your question by assigning points via the colored stars.
Best regards,
Robert -
Need to Find Total number of InfoPart form in our Web application
Hello,
We have to find total number of Infopath forms in our web application. IS there any Power sheell Scripts or anuthing which can output the Infopath Forms location and file count .
Thanks
KundanHow about something like:
Get-SPWebApplication http://yourWebAppUrl |
Get-SPSite -Limit All |
Get-SPWeb -Limit All |
Select -ExpandProperty Lists |
Where { $_.GetType().Name -eq "SPDocumentLibrary" -AND -NOT $_.Hidden } |
Select -ExpandProperty Items |
Where { $_.Name -LIKE "*.xsn" }
Select {$_.Web.Url}, Url
The above will list all of the files. Do you need counts by library, by site or other?
Mike Smith TechTrainingNotes.blogspot.com -
How to make an applet to read the Text file present inside a jar
Hi All,
I have writen one applet named ReadFile.java which reads a text file present in the same directory and does some manipulation of text file contents.
The applet code runs successfully when i run the applet in command prompt like
{color:#ff0000}*java ReadFile*{color}
And i am getting the needed results.
Then i made a jar file with the applet code and text file as
{color:#ff0000}*jar cvf rf.jar ReadFile.class File1.txt*{color}
Then i have inlcuded this applet inside a html file as
{color:#ff0000}*<applet code= "ReadFile.class" width= "500" height= "300" archive = "rf.jar" ></applet>*{color}
after this when i load the html file, the applet code is not executed fully. Its throwing FileNotFoundException: File1.txt.
Applet is not recognizing trhe text file present inside the jar file.
Can any body explain me how to overcome this problem. Any setting needs to be done for making the applet indicate the presence of Text file inside the jar file.what code in your applet gets the text file and reads it? are you using getResource or something similar?
-
Hw to find total number of records
Hi All,
Can anyone help from these
1. how to find total number of reports for a particular cube/ods... need step - step solution
2. how to find total number of records for a particular Cube and ODS and Aggr's to till date.
3.what is sandbox,mirror sys,instance of a sys..?
4.what r TWS(Tivoli Workload Scheduler) jobs? how these r different to standard schedulers?
Thanks in ADv
LindaHello Linda,
As you have lots of answers on first 2 so i'll start from 3rd onward.
3. Sandbox is mostly practice system where you can do all kind of R&D, mirror sys can be mirror image of any system depends on the organization and instance of system is again mirror image of one system.
4. TWS is third party tool for scheduling which doesn't come along with SAP like standard scheduler as TWS has been prepared specially for this purpose so it has some more features than standard.
Hope it helps.
San. -
Java error message - Bad version number in .class file
I get the error noted below in Safari, Firefox, and Chrome when I try to view java containing web pages.
Specifically this page: http://aviationweather.gov/adds/tafs/java/
My Java Preferences are as follows
My OS is 10.5.8
Thanks!
Java Plug-in 1.6.0_26
Using JRE version 1.5.0_30-b03-389-9M3425 Java HotSpot(TM) Client VM
User home directory = /Users/ernest
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Plugin2ClassLoader.java :1014)
at sun.plugin2.applet.Plugin2ClassLoader.access$100(Plugin2ClassLoader.java:69)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:9 55)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:134)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:675)
at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.ja va:1498)
at java.lang.Thread.run(Thread.java:655)
Exception: java.lang.UnsupportedClassVersionError: Bad version number in .class fileHi, thank you for the reply. However, java is definitely enabled on my computer, on all my browsers. In fact, if I go to the SUN website and run the java test, I get that all is OK.
I think it may have something to do with the .class (maybe in .jar-file) compiled with a higher version of java than the virtual machine trying to run it.
The example I found (google search) is .class-file that is compiled with JDK 6 and I am trying to run it with 1.4 JVM.
There is some software error going on somewhere... but I do not know enough to fix it.
Many thanks for all your help -
Find Total Number of Rows in Database
I am trying to find total number of rows in Database? Thanks in advance
I'd come back to a question of "why". What possible reason could you have to want to know the number of rows in every table in the database?
This seems like it is a request from someone non-technical where they're not sure exactly what they need to ask to get the information they want. I'm forseeing something along the lines of
User: How many rows are in the database
DBA: Ummm.... <<goes off and spends a lot of resources to count>>> ... 1 billion.
User: Wow, that's a lot... How big are those rows...
DBA: Hmmm... <<goes off and spends more time trying to find an average row size>>... 100 bytes
User: <<Plugs numbers into Excel>>... OK, our database is 93 GB, so we need to order 100 GB of disk for our new environment.
DBA: <<Months later, after 100 GB of disk has been budgeted, purchased, and delivered>> User, you didn't order enough disk for our disaster recovery environment.
User: You said our database was only 93 GB!!
DBA: 93 GB of data. Plus 100 GB of indexes, TEMP, UNDO, space for archived logs, ...
When "odd" requests come down, it's generally the case that the person asking the question doesn't know what question they really want to ask because they don't have the domain knowledge to know how to ask the question. Walking over and asking them what they're hoping to accomplish/ what they're using the data for generally leads to a case where
- The user gets exactly the information they need, not the information they think they want
- The DBA does a lot less work, since the right question is almost always easier to answer
- The user thinks of the DBA as a really helpful sort of guy and remembers how helpful you were in the past when you have to push back on other things later
- No one ends up playing the blame game when the user gets just what they asked for and not what they want.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
JDBC error : UnsupportedClassVersionError:Bad version number in .class file
Hi All,
I am currently working with PI 7.1 on an Idoc ->XI->JDBC scenario. The DB being used in our case is SQL 2008. We have successfully installed the JDBC driver provided by MS. When the message reached the JDBC the following error is listed in RWB.
JDBC Message processing failed, due to Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Can not establish connection:: UnsupportedClassVersionError: Bad version number in .class file
We tried reinstalling the JDBC drivers as well , but to no avail.. .
Any idea on why this could happen ?
Regards,
SandeepHi Mallikarjun,
Are you getting this error for only specific channel or all channels?
If you are getting this for all channels check your drivers of they are installed correctly....
if it is for specific channel then try increasing JDBC thread count and in restart the channel...
Regards,
Naveen -
The Wizard doesn´t start ("Bad version number in .class file")
Hi,
I have done the steps from Adobe´s web to install the plugin and dependences... But when i try to start the wizard i have this problem:
"The selected wizard could not be started.
Plug-in com.adobe.livecycle.cde was unable to load class com.adobe.livecycle.cde.wizard.CdeWizard.
Bad version number in .class file"
ThanksThanks for reply nothing
-
Conversion of a .class file into a .jar file
Conversion of a .class file into a .jar file
How Will I convert a .class file into a .jar file.
Pls answer ASAP.You don't.
You add a .class file into a .jar file. You don't convert anything.
Read the help page for jar for details. -
Hi, I created a hello.java file, converted into a hello.class file by using the java 2SDk compiler. The problem is that the hello.class file is in a directory I created: C:\JavaBuilder\hello.class
I have a problem converting the hello class file into a jar file. I don't know which approach to take. I've looked at tutorials...but I keep getting more confused each time I view the tutorials on creating jar files. Please can someone help..by taking me through a step by step process. Please be explicit and do not leave or assume that I know any details because I'm a new born beginner. Thank you very much, I seriously appreciate it.Hi i did as you suggested, only with these exceptions:
jar -cvf hello.jar C:\JavaBuilder\hello.class
I did this and got the message: "adding : C:\JavaBuilder\hello.class (in=1150) (out=708) (deflated=38%)"
The problem is that when I tried to execute the jar file...by typing: " java -jar hello.jar" I received the error message: "Failed to load Main-Class Manifest attribute from hello.jar" Is there any way to correct this problem? please help, thank you. -
Hi, I created a hello.java file, converted into a hello.class file by using the java 2SDk compiler. The problem is that the hello.class file is in a directory I created: C:\JavaBuilder\hello.class
I have a problem converting the hello class file into a jar file. I don't know which approach to take. I've looked at tutorials...but I keep getting more confused each time I view the tutorials on creating jar files. Please can someone help..by taking me through a step by step process. Please be explicit and do not leave or assume that I know any details because I'm a new born beginner. Thank you very much, I seriously appreciate it.Hi!
first of all, you should use an upper-case character for the first letter of your classes...
To answer your question :
1) you must create a directory named "meta-inf" in your directory "C:\JavaBuilder"
2) then,you must create a file named "manifest.mf" in this directory
it's like a property file and it must contain this :
Main-Class: hello
(don't forget to type <enter> after "hello")
3) in the directory "C:\JavaBuilder", you can enter the following command :
"jar cvfM hello.jar meta-inf\manifest.mf hello.class"
(check jar.exe is in your path)
4) you can run your jar by the command :
"java -jar hello.jar" -
Hi Guys,
I am looking for a sccm report which should provide total number of actual patches installed by us on all the machines (present in target collection). For couple of updates after sync it shows installed already on some machines.
Example:
CName | Total Patches | Already Installed | Installation triggered by Deployment | Collection ID
AW001 (123) (2) (17) CL00001
AW002 (123) (1)
(21) CL00001
AW003 (123) (1)
(26) CL00001
I am specially looking for 'Installation triggered by Deployment ' number
I would appriciate very much your the help.
Thanks,
ChandanHi Chandan,
You could try to create your custom report based on Software Updates Status views.
Software Updates Views in Configuration Manager
http://technet.microsoft.com/en-us/library/dn581945.aspx
Best Regards,
Joyce -
How to find total number of records in a BDoc?
Dear all,
I have replicated about BP 1088 records from ISU into CRM system with block size 100. Technically on SMW01, for each successfully processed BDoc, there will be 100 records (corresponds to 100 block size). But due to some failed BDocs, not all "successfully" BDocs will have 100 records each, some may have only 1 record inside...or 30...or 88 for example. So, may i know how to find or is there a report i can look into to find the total number of records clearly shown for each of the successfully processed green status BDocs???
Please help and points will be rewards!!
Thank You
Best Regards,
CKI am just showing this to show how to get the rowcount along with the cursor, if the program has so much gap of between verifying the count(*) and opening the cursor.
Justin actually covered this, he said, oracle has to spend some resources to build this functionality. As it is not most often required, it does not makes much sence to see it as a built-in feature. However, if we must see the rowcount when we open the cursor, here is a way, but it is little bit expensive.
SQL> create table emp_crap as select * from emp where 1 = 2;
Table created.
SQL> declare
2 v_cnt number := 0;
3 zero_rows exception;
4 begin
5 for rec in (select * from (select rownum rn, e.ename from emp_crap e) order by 1 desc)
6 loop
7 if v_cnt = 0 then
8 v_cnt := rec.rn;
9 end if;
10 end loop;
11 if v_cnt = 0 then
12 raise zero_rows;
13 end if;
14 exception
15 when zero_rows then
16 dbms_output.put_line('No rows');
17 end;
18 /
No rows
PL/SQL procedure successfully completed.
-- Now, let us use the table, which has the data
SQL> declare
2 v_cnt number := 0;
3 zero_rows exception;
4 begin
5 for rec in (select * from
6 (select rownum rn, e.ename from emp e)
7 order by 1 desc)
8 loop
9 if v_cnt = 0 then
10 v_cnt := rec.rn;
11 dbms_output.put_line(v_cnt);
12 end if;
13 end loop;
14 if v_cnt = 0 then
15 raise zero_rows;
16 end if;
17 exception
18 when zero_rows then
19 dbms_output.put_line('No rows');
20 end;
21 /
14
PL/SQL procedure successfully completed.Thx,
Sri -
Bex Query to find total number
Dear Friends,
I have data like below in my Infocube for different years. its flat file loading DS->DSO->Infocube.
EmpId
Dept
section
Year
Smoking
101
HR
A
Jan-10
No
102
HR
A
Jan-10
Yes
103
HR
B
Jan-10
Yes
104
FI
A
Jan-10
No
105
FI
B
Jan-10
No
102
HR
A
Aug-10
No
My requirement is like below to find out total number of employees who are Smokers and non smokers.
Dept
Year
Tot no of Emp
Tot Emp Smoking
Tot Emp non-smoking
HR
2010
3
2
1
FI
2010
2
0
2
Result
5
2
3
Please give me your valuable input
Thanks
VijayHi,
Do like Anshu said.
Remember to set "Calculate result as" "summation"
otherwise you don't get proper values in result rows.
Regards, Leszek
Maybe you are looking for
-
Is making a copy of a DVD as good quality as burning another original?
I am transfering old video tape onto DVD. When finished, I will have a dozen different DVDs. I want to give copies to my family for Christmas. Burning the first 12 and then making copies seems to be the fastest way to do this. But will I get a be
-
I was wondering if there was a way to get the photos that are over 30 days old into my photostream on my computer. My iPhone 5 has 1,000 photos in the photostream but only the ones that are less than 30 days old go on to my computer. I can't find any
-
How to increase the size of orders in photoshop to make it more enjoyable to use the software
how to increase the size of orders in photoshop to make it more enjoyable to use the software
-
How to View Voice Call Detail for 12 Month History?
Hello, I asked via Chat but it keeps locking up. I know there's a way to view voice call history by phone number for a 12 month period, but I can't see how to view this for months prior to the current month. When I select a prior month, it just shows
-
I am trying to update to Adobe Reader 10 - error
I keep getting a "certificate authentication error" Why is this?