You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

spysonic

Trainee

  • "spysonic" is male
  • "spysonic" started this thread

Posts: 88

Date of registration: Jul 11th 2014

About me: A beginner programmer.

Location: ...Jabaco Academy

Occupation: i have some but still not enough...

Hobbies: Jabaco

  • Send private message

1

Tuesday, September 16th 2014, 3:03am

Runtime methods

anybody knows how to properly code this one?
i just wanted to know the JVM info as follows:
total memory allocated
max memory
free memory
but the problem is i cant get it to work. im really is a beginner so please understand.

Jabaco Source

1
2
3
4
5
Import java#lang#Runtime 

Public Sub Form_Load()Dim rt As Runtime
	Text1.Text = rt.totalMemory 
End Sub
.
.
Spare me, im new to Programming

spysonic

Trainee

  • "spysonic" is male
  • "spysonic" started this thread

Posts: 88

Date of registration: Jul 11th 2014

About me: A beginner programmer.

Location: ...Jabaco Academy

Occupation: i have some but still not enough...

Hobbies: Jabaco

  • Send private message

2

Tuesday, September 16th 2014, 6:21am

finally i made it to work with these:

Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
Import java#lang#Runtime 

Public rt As runtime
Public Sub Form_Load() 
 rt = runtime.getRuntime() 
 rt.maxmemory
'   rt.totalmemory
'   rt.freeMemory 

 MsgBox rt
End Sub
.
.
Spare me, im new to Programming

Rate this thread
WoltLab Burning Board