• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to submit the part2 assignment deliverables properly as requested by Oracle?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on the Part 2 assignment work, below is the submission request from my assignment guide

" when you have completed your solution, you should have an ' index.html, that has your name, id, a link to the class, component, and deployment diagrams, risk list, this instruction file, and a link to each of the sequence/collaboration diagrams. Build a JAR file that contains all HTML files. You must build a JAR file; do not send individual files. "

I am using Visual Paradigm Community Edition to generate my diagrams. This VP edition doesn't allow to generate HTML file, only export diagrams as JPG file.

Given this, I have two questions to submit deliverables as requested,

1. How can I generate index.html file linking all jpg's, risk list note, and instruction file?
2. How to generate JAR file containing HTML files?


Thanks,

Hong
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. I have done it manually: created index.html file with html tags (div, a), that shows data or is a link to another page with image (jpg in my case)
2. I used command jar cf scea-XYZ.jar index.html css doc html img
where css, doc, html, img are folders containing related data. More details can be found here: https://docs.oracle.com/javase/tutorial/deployment/jar/build.html
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also done the HTML files manually linking the images accordingly.

Only the UML diagrams are images (JPG, PNG etc), whatever format your UML tool exported. I'm using Modelio which allows me to save as PNG.

The jar file can be generated using the jar command or simply any zip utility like WinZip or 7-Zip and rename the extension. Yet using the jar command is the proper way.
 
Hong Gao
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just add following on how to generate JAR file required to submit assignment deliverables.

In command line environment , use path command first to direct to Java bin where JAR command can be located, e.g.

path C:\Program Files\Java\jdk1.6.0_45\bin

Then use jar command

jar cvf SCEA_OC12345.jar C:\Users\gaoh\Desktop\VPProjects, where SCEA_OC12345.jar is the output file defination and C:\Users\gaoh\Desktop\VPProjects is the directory holding your all deliverables ( index html, diagram jpeg pic etc)

When command runs, you can see files details going to jar file and the compress ratio as well.
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way the submission jar file name is "scea-XXXXXX.jar" (a hyphen) not scea_XXXXX.jar (underscore)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic